Improve logging
Check whether the SMTP server returned success, and log failures