Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Meteor.startup(function () {
- process.env.MAIL_URL = 'smtp://postmaster%40sandbox46c5050bc63a4a9a99bd87aab077ab33.mailgun.org:6b8d4fe6d43901076acfdbe1507dbea7@smtp.mailgun.org:587';
- });
- // In your server code: define a method that the client can call
- Meteor.methods({
- sendEmail: function (to, from, subject, text) {
- // check([to, from, subject, text], [String]);
- this.unblock();
- Email.send({
- to: to,
- from: from,
- subject: subject,
- text: text
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement