Page 1 of 1

mail response

Posted: Sat Jun 21, 2008 6:40 am
by Jobmathew
hallo

can you please help me am a starter of php and just made a simple comtact form to get the response but the pblm is like from the mail() am getting the error

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\wamp\www\contact form\res.php on line 13

Re: mail response

Posted: Sat Jun 21, 2008 6:45 am
by omer.farooq
i think we cant send mails in local host, if u configure smtp then there are chances..

Re: mail response

Posted: Sat Jun 21, 2008 7:27 am
by Jobmathew
how do we configure smtp ??

Re: mail response

Posted: Sat Jun 21, 2008 7:56 am
by Kieran Huggins
it's an option in your PHP.ini file - there's inline documentation in the file.

Re: mail response

Posted: Sat Jun 21, 2008 8:06 am
by Jobmathew
ok i did it to smtp.gmail.com and to the port 80 and send from to my@gmail.com but still i am getting the same error message

Re: mail response

Posted: Sat Jun 21, 2008 6:02 pm
by Kieran Huggins
check your settings - gmail's smtp server is a poor choice, since it requires SSL. Try using your ISP's smtp server instead.. or use swiftwailer.