Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Viktor Popov
Ashley Sheridan wrote: On Thu, 2009-08-27 at 20:38 +0800, Keith wrote: Due to my web hosting server implement SMTP authentication, I couldn't do it with PHP mail() function, so I opt for PHPMailer. However, the $mail-Send() method always return true even I've set the $mail-AddAddress with

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Keith
Ash, Viktor, Thanks! Yes, validate the email is the preliminary solution. However, it is still possible that the email address is valid but is not exist in the target email provider. I wish to know also if the email can reach the recipient or not. Actually, I have tested with localhost in my

RE: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Bob McConnell
From: Paul M Foster On Thu, Aug 27, 2009 at 09:00:24AM -0400, Bob McConnell wrote: The return code only tells you the local server accepted the mail. It is unlikely that server knows the address is invalid since it can only validate the domain portion of the address. Only the destination

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Shawn McKenzie
Paul M Foster wrote: On Thu, Aug 27, 2009 at 09:00:24AM -0400, Bob McConnell wrote: The return code only tells you the local server accepted the mail. It is unlikely that server knows the address is invalid since it can only validate the domain portion of the address. Only the destination

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Paul M Foster
On Thu, Aug 27, 2009 at 10:06:03AM -0500, Shawn McKenzie wrote: Paul M Foster wrote: On Thu, Aug 27, 2009 at 09:00:24AM -0400, Bob McConnell wrote: The return code only tells you the local server accepted the mail. It is unlikely that server knows the address is invalid since it can only

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Ben Dunlap
another change in the email admin best practices discussion. For a short while the network became clogged in bounce messages sent to both valid and invalid addresses. Some of the invalid addresses even triggered infinite loops of error messages. None of the servers I am familiar with send

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Paul M Foster
On Thu, Aug 27, 2009 at 10:57:32AM -0700, Ben Dunlap wrote: another change in the email admin best practices discussion. For a short while the network became clogged in bounce messages sent to both valid and invalid addresses. Some of the invalid addresses even triggered infinite loops of

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Ben Dunlap
The second problem is that it still forces the originating SMTP server to pass on the 5xx error as a bounce message to the originator. Yeah, I guess this would be a problem in cases where the originating server is an open relay that's being exploited by a spammer. I wonder what proportion of