Guest User

Untitled

a guest
May 14th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. var transporter = nodemailer.createTransport(smtpTransport({
  2. host: 'smtp.office365.com',
  3. port: 25, // have tried 465
  4. secureConnection: secure,
  5. auth: {
  6. user: username,
  7. pass: password
  8. },
  9. tls: {
  10. rejectUnauthorized: false // don't verify certificates
  11. },
  12. ignoreTLS: false // don't turn off STARTTLS support
  13. }));
  14.  
  15. [Error: Invalid login: 504 5.7.4 Unrecognized authentication type]
  16. code: 'EAUTH',
  17. response: '504 5.7.4 Unrecognized authentication type',
  18. responseCode: 504
  19.  
  20. var transporter = nodemailer.createTransport({
  21. host: 'smtp.office365.com', // Office 365 server
  22. port: 587, // secure SMTP
  23. secure: false, // false for TLS - as a boolean not string - but the default is false so just remove this completely
  24. auth: {
  25. user: username,
  26. pass: password
  27. },
  28. tls: {
  29. ciphers: 'SSLv3'
  30. }
  31. });
  32.  
  33. requireTLS: true
Add Comment
Please, Sign In to add comment