Meteor Email Error

I'm having problems sending emails using Metoer. I get the message "Email is not defined." I tried "meteor add email", but it did not help.

Am I missing something?

+6
source share
1 answer

Have you set the MAIL_URL environment MAIL_URL ?

From meteorite documents:

The server reads from the MAIL_URL environment variable to determine how to send mail. Meteor currently supports sending mail through SMTP; the MAIL_URL environment MAIL_URL should look like smtp://USERNAME: PASSWORD@HOST :PORT /.

For applications deployed when deploying meteors, MAIL_URL uses the default account (provided by Mailgun ), which allows applications to send 200 letters per day; you can override this default by assigning process.env.MAIL_URL before the first call to Email.send.

If MAIL_URL not set (for example, when the application is launched locally), Email.send displays a message to standard output.

+8
source

All Articles