answering my own question after digging around and going to leave this up in case anyone finds this helpful. Basically followed the answer in this post TMTP is not working properly when deployed to netlify and the key was to await the sendmail function and the transporter.sendmail({…}) function. Also stripped out a lot of what’s above (remove the try catch block) and remove the callback (err, info) => {} function.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
SES Send Email fails with permission denied (only on Netlify, works on other site with same credentials & code) | 9 | 4460 | November 6, 2022 | |
AWS SES Not Working ( | 1 | 480 | October 15, 2023 | |
Netlify lambda functions not firing first time | 1 | 759 | December 18, 2020 | |
Nodemailer doens't work on production | 5 | 1205 | August 7, 2023 | |
Nodemailer not working in production | 13 | 5405 | September 28, 2022 |