Skip to content Skip to sidebar Skip to footer

Node - Options For Sending Email, Sendgrid And Nodemailer One Of Them Or Combined

Not so experienced with sending email in node and as i can see there are different option to choose among. Which option to use in following scenario? Using node-mailer with sengrid

Solution 1:

I have used nodemailer with Mandrill without any problems.

This is the code that works in my case, but you mentione not in yours:

// Create a SMTP transport objectvar transport = nodemailer.createTransport("SMTP", {
    service: mainConfigFile.smtpServer.service, // use well known service
    auth: {
        user: mainConfigFile.smtpServer.user,
        pass: mainConfigFile.smtpServer.pass
    }
});

Please note that credentials are stored in mainConfigFile, but it is clear what is the intention.

I think you shoudl be ok with nodemailer.

Can you provide more details regarding the error you receive?

Post a Comment for "Node - Options For Sending Email, Sendgrid And Nodemailer One Of Them Or Combined"