Ari Porad
Ari Porad

Reputation: 2922

Nodemailer HTML not working with sendgrid

I am using sendgrid and nodemailer trying to send an HTML email. here is the code:

for(var i = 0;i<emails.length; i++){
    email.sendMail({
        from:'"Name" <[email protected]>',
        to:emails[i],
        HTML:"<h1>hi</h1>",
        generateTextFromHTML:true,
        subject: "Blah"
    },function(err,res){
        if(err){console.log(err)};
        if(res){console.log(res.message)};
    })
}

let me know if you need anymore information let me know. thanks, ari

Upvotes: 2

Views: 847

Answers (1)

Ari Porad
Ari Porad

Reputation: 2922

I found Out this was an error with my usage of the sendgrid API. sorry.

Upvotes: 0

Related Questions