Page 1 of 1

Using mail() with PHP

Posted: Tue Dec 16, 2003 11:54 pm
by mhamilton3
I have what I hope is a very easy question. I am a perl person not a php person, but I have a script that I inherited that is having an issue. The code uses mail() to send a confirmation email. There is no check for return codes on the call to mail. Are there reasons why mail would fail. I have many places where I am assured the code ran, but an email is never received and I checked the server and it does not register an email being sent. Just looking for a suggestion on what to do. I don't have any PHP documentation so I am about to look for return codes for mail(), but if you have return codes that would be cool. Thanks.

Posted: Wed Dec 17, 2003 12:38 am
by microthick
In your php.ini have you specified your smtp server? or the location of sendmail?

Posted: Wed Dec 17, 2003 1:12 am
by m3mn0n
Are you checking to see if it works with an @aol.com address?

Posted: Wed Dec 17, 2003 8:39 am
by Saethyr
Post your code, this will help a bit, don't post anything important just the mail code.


Saethyr