PHP Classes

501 5.1.3 Invalid address

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  501 5.1.3 Invalid address  >  (Un) Subscribe thread alerts  
Subject:501 5.1.3 Invalid address
Summary:Error sending massive email > 30000
Messages:2
Author:Luís Ramos
Date:2008-07-29 10:23:46
Update:2008-07-29 23:04:03
 

  1. 501 5.1.3 Invalid address   Reply   Report abuse  
Picture of Luís Ramos Luís Ramos - 2008-07-29 10:23:46
Hi Manuel,

i'm using you great class to send a lot of emails (over 30.000).
I'm using a While loop and i automaticaly refresh the page on each 500 sent emails to avoid server-side timeout.

I'm sending the emais with no problem at all and the delivery is working just great. (SMTP, Windows Server)

The thing is that, sometimes I get this error:

501 5.1.3 Invalid address

after calling the Send() funtion.
Some of the emails i get the error from are actually invalid but, some are not. It looks like the error freezes and then returns on all emails i'm sending. Even the valid ones.

Shall i restart the sending whenever an error is found?

Any ideias? Thnkx in advance.


  2. Re: 501 5.1.3 Invalid address   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-07-29 23:04:04 - In reply to message 1 from Luís Ramos
I do not recommend that you do that. If you get an error from the server, it is better that you close the connection and restart a new one.

Anyway, for what you are doing I recommend that you use the MIME message class in conjunction with the SMTP class. I has better support for bulk mailing.

If you can use Microsoft Exchange, using the MIME message class with the pickup folder sub-class is an even better solution for bulk mail under Windows and you will have problems like that.

phpclasses.org/mimemessage