When executing a task manually the error message "Write to stream threw a System.Exception" appears in a message box.  The email is successfully sent however.  The log on the server reports:
Email report error, error: OpenSmtp.Mail.SmtpException: Write to Stream threw an System.Exception.
How can I prevent this error appearing?