PHP Classes

Error won't go away

Recommend this page to a friend!

      MIME E-mail message sending  >  All threads  >  Error won't go away  >  (Un) Subscribe thread alerts  
Subject:Error won't go away
Summary:Sending bulk email, when a error occurs it stops sending
Author:Steve Buzer
Date:2006-06-06 15:31:04
Update:2006-06-08 15:26:01

  1. Error won't go away   Reply   Report abuse  
Steve Buzer - 2006-06-06 15:31:04
I have been using email_message.php for some time with great results. I recently installed it on a new system. There data wasn't as clean.

they would have emails for instance such as "" or "Mike@hotmail"

That produces an error "cannot send email...

Unfortunely, every email after that gives the same error message.

I tried resetting the error in the loop


But it doesn't work. I usually have to wait a day to start over. I assume their is a memory time-out period that has to lapse.

Any ideas?

--steve buser

  2. Re: Error won't go away   Reply   Report abuse  
Manuel Lemos - 2006-06-06 18:46:00 - In reply to message 1 from Steve Buzer
First of all, you can avoid using such invalid addresses using the ValidateEmailAddress function.

As for the error, clearing the class error variable should do it. If it does not work, something is wrong but I don't know what could be.

Are you using the base email_message class, or a sub-class like smtp_message class?

I will probably need an example script to replicate the problem.

  3. Re: Error won't go away   Reply   Report abuse  
Steve Buzer - 2006-06-08 15:26:01 - In reply to message 2 from Manuel Lemos
I am using email_message_class.

I just found out from my host company that they are throttling the number of emails per hour. That was the problem. (this is something new and they never announced it).

Unfortunately, what they are doing doesn't give any specific errors.

Thanks for your help. The excercise was well worth the time -- it gave me the opportunity to examine your class in some detail and learn how I can make better use of it.

As I said, I have been using the class on another site for some time and it has been a workhorse.