Email

Email

Documentation of Meteor's email API.

The email package allows sending email from a Meteor app. To use it, add the package to your project by running in your terminal:

meteor add email

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.

If MAIL_URL is not set, Email.send outputs the message to standard output instead.

Server
Email.send(options)
import { Email } from 'meteor/email' 登录查看完整内容