Move SMTP gateway str assertion to inside OutgoingMail.