Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

mail config

1u edited this page Feb 24, 2015 · 1 revision

http://docs.meteor.com/#/full/email_send
For apps deployed with meteor deploy, MAIL_URL defaults to an account (provided by Mailgun) which allows apps to send up to 200 emails per day

Meteor.startup(function () {
  var mail_config = 'smtp://USERNAME:PASSWORD@HOST:PORT/';
  process.env.MAIL_URL = mail_config;

  console.log('email configured to: '+mail_config+' …done')
});