I use the above code to tinker with my command-line e-mail client MailSend.
I use this script and variations of it to simulate various SMTP conditions to ensure that MailSend can appropriately handle various kinds of exceptions.
Back to Jimbo's Demented Software