Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1.  
  2. Meteor.startup(function () {
  3.  
  4. process.env.MAIL_URL = 'smtp://postmaster%40sandbox46c5050bc63a4a9a99bd87aab077ab33.mailgun.org:6b8d4fe6d43901076acfdbe1507dbea7@smtp.mailgun.org:587';
  5. });
  6. // In your server code: define a method that the client can call
  7. Meteor.methods({
  8. sendEmail: function (to, from, subject, text) {
  9. // check([to, from, subject, text], [String]);
  10. this.unblock();
  11.  
  12. Email.send({
  13. to: to,
  14. from: from,
  15. subject: subject,
  16. text: text
  17. });
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement