Skip to content

Instantly share code, notes, and snippets.

@nate-strauser
Created January 17, 2013 21:37
Show Gist options
  • Select an option

  • Save nate-strauser/4560017 to your computer and use it in GitHub Desktop.

Select an option

Save nate-strauser/4560017 to your computer and use it in GitHub Desktop.
Email configuration to Amazon SES with Meteor on Heroku

Follow instructions below to get meteor emails sending correctly from heroku using amazon ses

  1. set up smtp access via aws console, get your smtp credentials

  2. 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

  1. take resulting strings to build your smtp url like so

smtp://ENCODED_USER:ENCODED_PASS@SES_SMTP_URL:465

  1. 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)

  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment