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
mail response
Moderator: General Moderators
-
omer.farooq
- Forum Newbie
- Posts: 3
- Joined: Sat Jun 21, 2008 6:16 am
Re: mail response
i think we cant send mails in local host, if u configure smtp then there are chances..
Re: mail response
how do we configure smtp ??
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: mail response
it's an option in your PHP.ini file - there's inline documentation in the file.
Re: mail response
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
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: mail response
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.