cleaned up smtp client after toEmail reconnect

There were some issues with the toEmail block when it was not able to make an SMTP connection. Most seemed to be coming from an invalid SMTP client returned from a failed connection attempt. I've nilled out the client on that scenario and done a few formatting changes.