Prevent panic when submitting an empty message
Add many more SMTP handler tests