Page 1 of 1

PHP mail() function not working for me

Posted: Mon May 07, 2007 11:07 am
by Jackie
Please I used the mail() function in my code but when I tested it on my server, it didn't send any emails out. Do I need to do any configuration on the server to send out emails from my script??

Posted: Mon May 07, 2007 11:10 am
by volka
Probably yes. see http://de2.php.net/mail
You might also be interested in http://sourceforge.net/projects/swiftmailer and viewforum.php?f=52

php mail() function

Posted: Wed May 09, 2007 2:46 am
by Jackie
Please can someone elaborate more on this. I'm a young php user, running php on a windows platform but its not sending out emails. Do i need to configure my server or the php.ini file and how do I go about it?

Thank you.

Posted: Wed May 09, 2007 4:27 am
by dhrosti
stolen from one of my books...

"On Windows, mail() sends using SMTP, the name of the relay server must be defined in php.ini".

It's all explained in the first link volka gave you