Monday, October 29, 2018

SendGrid send email using SMTP relay

Web API integration require the assistant packages from SendGrid to be used. If we have NodeMailer kind of package already in use
Below is the configuration for this

var transporter = nodemailer.createTransport({
            host: 'smtp.sendgrid.net',
            port: 465,
            secure: true, // true for 465, false for other ports
            auth: {
                user: "apikey", // generated ethereal user
                pass: ""  // generated ethereal password
            }
        });

references

No comments:

Post a Comment