The host of the site I'm working on tends to shut off email if a certain number of fails take place. Needless to say this is a bit of a pain even if it's justified to fight spam. Is there a way to test if an email address has failed once so it can be flagged?

  • is your website in HTML, PHP, or ASP.NET? Apr 1 '11 at 14:17
  • @Brian: It's in PHP. Added a tag.
    – James P.
    Apr 2 '11 at 9:19

+1 For John Conde, but also you could think about switching to an host who won't penalize you for this kind of problem. I understand it is Ok to fight spam, but blocking an e-mail account for a paying customer may not be the best way to achieve this, there are tons of host who won't act like this, or you could think about getting a private mail server?

  • +1 Hosting is such a commodity finding one without this draconian practice should be easy enough to do.
    – John Conde
    Apr 1 '11 at 13:10

Send an email to the address. If it bounces back it is turned off. To check that programatically you'll need to pipe the any replies to a script that then parses the reply looking for the rejection message. Then log it in a database as being a bad address.


A lot of sites send confirmation emails. In the email it will have a code or a url that the user will use to activate their account. Setting up your web app to do this isn't very difficult.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.