Skip to content
Advertisement

AWS javascript SDK SES SendMail Illegal Address

I’m attempting to send mail using AWS SES.

Here’s the error I’m seeing:

JavaScript

Here’s the request object being passed in to SendMail method of AWS.SES for javascript SDK.

JavaScript

bob@gmail.com is verified on my account (which is still in sandbox mode). donotreply@kudo.io is also verified on my account.

Edit: I just tested it by using the test email option in SES and it worked… still can’t get it to send using the SDK though.

Advertisement

Answer

Okay, the key is to remove the empty strings for ReturnPath and ReturnPathArn and SourceArn if you aren’t using it. Once I did that it worked.

Source: https://forums.aws.amazon.com/thread.jspa?messageID=787424&#787424

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement