Follow instructions below to get meteor emails sending correctly from heroku using amazon ses
-
set up smtp access via aws console, get your smtp credentials
-
using a javascript console (chrome dev tools / firebug) run
encodeURIComponent("SES_SMTP_USERNAME")
encodeURIComponent("SES_SMTP_PASSWORD")
to encode the username/password for use in your smtp url
- take resulting strings to build your smtp url like so
smtp://ENCODED_USER:ENCODED_PASS@SES_SMTP_URL:465
- set the MAIL_URL variable to tell meteor to use this method for sending emails
heroku config:add MAIL_URL=YOUR_SMTP_URL
(do not surrond the url with qoutes)
- set sender to be a SES verified sender within your meteor app via
Accounts.emailTemplates.from = "SENDER_NAME <SENDER_EMAIL>";
That will allow Meteor default email methods to function properly.