Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor Email Error [closed]

Tags:

email

meteor

I'm having issues sending email messages with Metoer. Im getting "Email is not defined" error. I've tried "meteor add email" but it didnt help.

Am I missing something?

like image 603
RiaanZA Avatar asked Nov 22 '12 08:11

RiaanZA


1 Answers

did you setup the MAIL_URL environment variable ?

From meteor docs :

The server reads from the MAIL_URL environment variable to determine how to send mail. Currently, Meteor supports sending mail over SMTP; the MAIL_URL environment variable should be of the form smtp://USERNAME:PASSWORD@HOST:PORT/.

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; you may override this default by assigning to process.env.MAIL_URL before your first call to Email.send.

If MAIL_URL is not set (eg, when running your application locally), Email.send outputs the message to standard output instead.

like image 142
mohamed mellouki Avatar answered Nov 12 '22 10:11

mohamed mellouki