Added Amazon SES and custom SMTP support