SyrusAkbary/validate_email — pull request #3 by decibyte (2013-05-02 12:31:44+00:00)
Title: Now quitting SMTP connection

I had some issues with checking lots of e-mail addresses. After a while everything locked up. Frustrated, I left my code. Now, a couple of weeks later, that I got back to it, it struck me that maybe it's considered impolite by the SMTP servers to have too many open connections to the same server(s), resulting in them refusing connections and/or to give valid responses. Unfortunately, I was unable to reproduce the problem, but I added the smtp.quit() a handful of places anyway, as I think it doesn't hurt anyone to quit the connections.