mail response

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jobmathew
Forum Newbie
Posts: 3
Joined: Thu Jun 19, 2008 7:25 am

mail response

Post 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
omer.farooq
Forum Newbie
Posts: 3
Joined: Sat Jun 21, 2008 6:16 am

Re: mail response

Post by omer.farooq »

i think we cant send mails in local host, if u configure smtp then there are chances..
Jobmathew
Forum Newbie
Posts: 3
Joined: Thu Jun 19, 2008 7:25 am

Re: mail response

Post by Jobmathew »

how do we configure smtp ??
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: mail response

Post by Kieran Huggins »

it's an option in your PHP.ini file - there's inline documentation in the file.
Jobmathew
Forum Newbie
Posts: 3
Joined: Thu Jun 19, 2008 7:25 am

Re: mail response

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: mail response

Post 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.
Post Reply