Re: Mail Function

From: Date: Wed, 11 Apr 2001 09:29:47 +0000
Subject: Re: Mail Function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48130@lists.php.net to get a copy of this message
Try adding a if (!mail(blah blah, balh blah ....)) { echo "Mail not sent"; } if (mail(blah bal.....)) { echo "Mail sent"; } Try these and subsitute what ever is in the mail() with your relevant information. ----- Original Message ----- From: RealGM <webmaster@realgm.com> To: <php-general@lists.php.net> Sent: Wednesday, 11 April, 2001 5:16 PM Subject: [PHP] Mail Function Hi, Tonight was my first attempt at using the mail() function, and running the script I had no problems with execution. Everything seemed to go smoothly, except for one thing. I never received an email. I have consulted the manual and found nothing on the questions I am about to ask. Is there any way of confirming whether an email was actually sent, or if there like a log file I can check? The server is running php4 via apache on a linux machine. Any help would be appeciated, as I have no idea what could (or could not) be happening. Thank you, Michael.

« previous php.general (#48130) next »