Re: [PHP] mail sent but not received?!
On Fri, 25 Jun 2004 11:08:26 -0500 (CDT), Bing Du [EMAIL PROTECTED] wrote: Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. Can you send email to that address from that server? On unixy systems the mail log is usually in (shocker) /var/log/maillog. For a Windows system make sure you have the mail settings in php.ini setup correctly (see http://php.net/mail for full info). -- Stuttle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail sent but not received?!
Your message could have bounced or been rejected for some other reason, in which case you wouldn't have recieved it, but it'll look like it's sent fine. -Josh -Original Message- From: Bing Du [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] mail sent but not received?! Hi, I've been pulling my hair out over this problem for a while... ?php $msg = Hi, this is a test; $to = [EMAIL PROTECTED]; $sbj = test message from my.edu; $rev = mail($to,$sbj,$msg); echo mail from my.edu result is $rev; ? -- Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. Any help would be greatly appreciated! Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail sent but not received?!
* Thus wrote Bing Du: $rev = mail($to,$sbj,$msg); echo mail from my.edu result is $rev; ? -- Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more Negative! $rev will simply let you know that your MTA (mail transfer agent) accepted your message. The MTA will attempt to deliver the message at its own will. clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. if the mail was unsucessfully delivered, and [EMAIL PROTECTED] is a valid email then the email will get returned to [EMAIL PROTECTED] it gets more complicated than that but thats the jest of it. Any help would be greatly appreciated! If you have access to you're maillog's then view those. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php