Re: [PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Rasmus Lerdorf

Sure, it just passes it off to the MTA.  If the MTA drops the ball later
on we don't know about it.  Check your logs.

On Mon, 25 Mar 2002, Kevin Stone wrote:

 Anyone run into this problem before?  I've got a simple email parser
 that I've set up for our clients to access from their websites.  It just
 uses the simple mail() function to send the parsed HTML to their
 account.  The mail() function is returning TRUE  but the email no email
 is being received.  How does the mail() function check if the email has
 actually been sent?  Is it possible that the mail() function could be
 given the proper signals to return TRUE but then the server not send the
 email?

 Thanks,
 Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Demitrious S. Kelly

I would check the mail logs on the smtp server ?(if you have access)
or... try this and see if ANY mail is bveing sent to you (assumes a unix
server with sendmail (or compatible) binary installed)

 $fp=fopen('./tmp', 'w');
 fputs($fp, 'Subject: '.$reportsubject.chr(10));
 fputs($fp, $reportmail);
 fclose($fp);
 foreach($reportaddr as $addr) {
`cat ./tmp | $sendmail $addr`;
 }
 unlink('./tmp');

(taken from a script I wrote for a server which didn't have mail() due
to an annoying problem 

http://www.apokalyptik.com/watchtower/watchtower-1.0.phps

)

-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 4:26 PM
To: php-general-list
Subject: [PHP] mail() function returns TRUE but no email is sent

Anyone run into this problem before?  I've got a simple email parser
that I've set up for our clients to access from their websites.  It just
uses the simple mail() function to send the parsed HTML to their
account.  The mail() function is returning TRUE  but the email no email
is being received.  How does the mail() function check if the email has
actually been sent?  Is it possible that the mail() function could be
given the proper signals to return TRUE but then the server not send the
email?
 
Thanks,
Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php