hai friends

I want mail server setting in my php appliacation no need to change the php ini file
I got some sample code like this
This code working on only Windows machine only. But I am using linux machine

Any option without change the phpini file to setting the mail server configuration ?

Please advice

11 Years
Discussion Span
Last Post by IIM

Well vssp. I don't have any idea as to the correct solution. Which is why my advice to you would have been to post the question in the PHP forum.

Your question has absolutely nothing to do with HTML, CSS or Javascript; and while perhaps some people who visit here would be able to help you, there's more chance someone in the PHP forum or even one of the Linux forums will be able to help you, and might even see your question sooner.

If there was some hint of frontend/HTML stuff in there, perhaps it'd fit in OK here. But there is not, and this is the HTML, CSS and Javascript forum.


oh yes ,Just now I check ,ok thanks I move tis to php or linux forum

But i post the question Php forun



change ini file as
[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 587
; For Win32 only.
;sendmail_from = you@gmail.com

Edited by pritaeas: Removed fake signature


Make change in this in php.ini

sendmail_path = "/usr/sbin/sendmail -t -i -f fromMe@blah.com"

Or you can set

$mail_ini=ini_set("sendmail_path","/usr/sbin/sendmail -t -i -f fromMe@blah.com");

Hopefully this will solve your issue.

For more info visit php.net

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.