Problem with Free SMTP Server in php code
Posted
by Nuha
on Stack Overflow
See other posts from Stack Overflow
or by Nuha
Published on 2010-03-26T15:33:39Z
Indexed on
2010/04/30
12:47 UTC
Read the original article
Hit count: 200
I wrote php code for use to contact us form
but I can not find free SMTP server to use it.
I Try to use SMTP Server For Gmail but I found this error.
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\www\htdocs\contactUs.php on line 25"
line 25 is :
mail ($to,$subject,$body,$headers);
statement that indicate using Gmail SMTP Server is :
ini_set("SMTP","smtp.gmail.com");
SO,can U help me ?:(
© Stack Overflow or respective owner