DEV Community

Discussion on: Send mails using NodeJS

Collapse
 
jlong4223 profile image
Jared Long

@Suchitra try adding an 's' to attachment: attachments: [{

I ran into the same thing with just text showing up and checked the nodemailer documentation on attachements. That little mispelling fix should do the trick.

Also, if you want to learn how to do this with a React frontend and Google OAuth2, check out my nodemailer article as well :)

Collapse
 
suchitra_13 profile image
Suchitra

Thank you so much
It's working fine now:)