node.js - How to identify the service name of a mail id -


in node js sending mails using node mailer.

var transporter = nodemailer.createtransport({ service : 'gmail', auth : { user : 'xyz@gmail.com', pass : '*******' } });

this scenario working fine.

now going use "invite@myhealthcircles.com" mail id authentication.

var transporter = nodemailer.createtransport({ service : 'myhealthcircles', auth : { user : 'invite@myhealthcircles.com', pass : '*******' } });

now mails not sending. service name correct ? or have give else. if , how finde service name

you need use nodemailer-smtp-pool module, , provide email server credential in option:

var mailer = require('nodemailer'); var smtppool = require('nodemailer-smtp-pool'); var option = {     host: 'localhost',     port: 25,     auth: {         user: 'your@email.com',         pass: 'yourpassword'     } }  mailer.createtransport(smtppool(option));  ... // send email mailer.sendmail(...) 

that it.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -