I solved it.. in a different way. Responding to this in case anybody has a similar issue. I was not able to get it working using NodeJS directly. I made a lambda function that gets triggered with an API gateway. The button on the website sends a call to the API route which in turn triggers the lambda function with the same code as above. This way it worked and actually separated the mailing functionality nicely from the website.
Max number of sending emails of SESasked 9 months ago
How to appeal rejection of Out of SandBox?
How can I appeal out of sand box rejection? and what is verified email??
Amplify multi-env setup causing my production build with wrong env accessasked 3 years ago
SES Says email is unverified via Wordpress, but verified in SES Consoleasked 3 months ago
SES send email on behalf of different custom domain using verified domainasked 4 months ago
Verified SES entity (out of sandbox), unable to send production e-mails on deployed website (amplify). Works fully in local dev env. AWS-SDK NodeJSAccepted Answerasked a month ago
Verified domain, SES authentication refuses emails.asked 6 months ago
SES 554 Error on verified emailasked 4 months ago
Cognito/SES giving error that Email is not verified despite being verifiedasked 7 months ago