Search code examples
meteorsmtpcloud9-idemeteor-accounts

How can I configure the smtp port used by Accounts.ui in Meteor


I am unable to send email in development because cloud9 blocks normal smtp ports. Can I configure Accounts.ui in Meteor to use mailgun's special smtp port?


Solution

  • It's done with an environment variable like this

    MAIL_URL = "smtp://user%40gmail.com:[email protected]:465"
    

    The first @ has to be written as %40 - to do with the way the url is parsed