Follow the instructions below to get meteor letters from geroku correctly using amazon ses
1) configure smtp access through aws console, get your smtp credentials
2) using javascript console (chrome dev tools / firebug) run
encodeURIComponent("SES_SMTP_USERNAME")
encodeURIComponent("SES_SMTP_PASSWORD")
to encode username / password to use in your smtp url
3) take the result lines to build your smtp url, for example:
smtp://ENCODED_USER: ENCODED_PASS@SES _SMTP_URL:465
4) set the MAIL_URL variable to tell the meteor to use this method to send letters
heroku config:add MAIL_URL=YOUR_SMTP_URL
(do not repeat url with qoutes)
5) set the sender as a SES-confirmed sender in your meteor application via
Accounts.emailTemplates.from = "SENDER_NAME <SENDER_EMAIL>";
This will allow the default Meteor email methods to function properly.
nate-strauser
source share