Improvements to SMTP support.