Nodemailer AWS SES not working in production

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.