Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Error: getaddrinfo ENOTFOUND mail.square.io mail.square.io:587
  2. at errnoException (dns.js:28:10)
  3. at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
  4.  
  5. const functions = require('firebase-functions');
  6. const nodemailer = require('nodemailer');
  7. const smtpTransport = require("nodemailer-smtp-transport");
  8.  
  9. const mailTransport = nodemailer.createTransport(
  10. smtpTransport({
  11. host: "mail.square.io", // hostname
  12. port: '587', // port for secure SMTP
  13. //secureConnection: false, // TLS requires secureConnection to be false
  14. auth: {
  15. user: 'hello@square.io',
  16. pass: 'square123'
  17. },
  18. tls: {
  19. rejectUnauthrized: false
  20. }
  21. }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement