Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. Meteor.startup(() => {
  2. // code to run on server at startup
  3. process.env.MAIL_URL = 'smtps://email_address@gmail.com:password_without_special_keys@smtp.gmail.com:465';
  4.  
  5. Email.send({
  6. from: "from_adddress@gmail.com",
  7. to: "to_address@gmail.com",
  8. subject: "Meteor Can Send Emails via Gmail",
  9. text: "Its pretty easy to send emails via gmail."
  10. })
  11.  
  12.  
  13.  
  14. });
  15.  
  16. W20170718-15:36:37.701(6)? (STDERR) /home/forhadmethun/.meteor/packages/meteor-tool/.1.5.1.dvn6c8++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/server-lib/node_modules/fibers/future.js:313
  17. W20170718-15:36:37.766(6)? (STDERR) throw(ex);
  18. W20170718-15:36:37.767(6)? (STDERR) ^
  19. W20170718-15:36:37.769(6)? (STDERR)
  20. W20170718-15:36:37.769(6)? (STDERR) Error: Connection timeout
  21. W20170718-15:36:37.770(6)? (STDERR) at Object.Future.wait (/home/forhadmethun/.meteor/packages/meteor-tool/.1.5.1.dvn6c8++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/server-lib/node_modules/fibers/future.js:449:15)
  22. W20170718-15:36:37.771(6)? (STDERR) at Mail._syncSendMail (packages/meteor.js:213:24)
  23. W20170718-15:36:37.772(6)? (STDERR) at smtpSend (packages/email.js:116:13)
  24. W20170718-15:36:37.773(6)? (STDERR) at Object.Email.send (packages/email.js:174:5)
  25. W20170718-15:36:37.774(6)? (STDERR) at server/main.js:28:11
  26. W20170718-15:36:37.775(6)? (STDERR) at Function.time (/home/forhadmethun/WebstormProjects/EmailSEndProject/.meteor/local/build/programs/server/profile.js:309:28)
  27. W20170718-15:36:37.776(6)? (STDERR) at /home/forhadmethun/WebstormProjects/EmailSEndProject/.meteor/local/build/programs/server/boot.js:347:13
  28. W20170718-15:36:37.777(6)? (STDERR) at /home/forhadmethun/WebstormProjects/EmailSEndProject/.meteor/local/build/programs/server/boot.js:388:5
  29. W20170718-15:36:37.779(6)? (STDERR) at Function.run (/home/forhadmethun/WebstormProjects/EmailSEndProject/.meteor/local/build/programs/server/profile.js:510:12)
  30. W20170718-15:36:37.780(6)? (STDERR) at /home/forhadmethun/WebstormProjects/EmailSEndProject/.meteor/local/build/programs/server/boot.js:386:11
  31. W20170718-15:36:37.781(6)? (STDERR) - - - - -
  32. W20170718-15:36:37.782(6)? (STDERR) at SMTPConnection._formatError (/home/forhadmethun/.meteor/packages/email/.1.2.3.3ikb16++os+web.browser+web.cordova/npm/node_modules/node4mailer/lib/smtp-connection/index.js:558:19)
  33. W20170718-15:36:37.784(6)? (STDERR) at SMTPConnection._onError (/home/forhadmethun/.meteor/packages/email/.1.2.3.3ikb16++os+web.browser+web.cordova/npm/node_modules/node4mailer/lib/smtp-connection/index.js:531:20)
  34. W20170718-15:36:37.785(6)? (STDERR) at [object Object].<anonymous> (/home/forhadmethun/.meteor/packages/email/.1.2.3.3ikb16++os+web.browser+web.cordova/npm/node_modules/node4mailer/lib/smtp-connection/index.js:249:18)
  35. W20170718-15:36:37.787(6)? (STDERR) at Timer.listOnTimeout (timers.js:92:15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement