Reputation: 307
I'm using python lib boto
for sending emails via SES. And when I tried to send to more than 30 (but less than 50, so limit is not exceeded) recipients, I got an error:
<Error>
<Type>Sender</Type>
<Code>InvalidParameterValue</Code>
<Message>Missing final '@domain'</Message>
</Error>
My to_addresses
is empty list, all recipients are in bcc_addresses
list.
What does it mean? Every recipient's address is valid and sender address is verified and valid.
Upvotes: 16
Views: 17585
Reputation: 546
For me the sender email or the receive email identities weren't verified
And as I wasn't on production mode and was only using the sandbox , the emails need to be verified
After going to Identities and making sure identities were created for both sender and received I no longer faced the issue .
Upvotes: 0
Reputation: 21
You need to use an email address that is registered with Amazon SES in the from_email_address parameter.
This is the email address that recipients will see as the sender. It must be verified in Amazon SES.
sendEmail: (
to: string,
from: string, <-- this email should be registered email on aws ses
subject: string,
text: string | null,
html: any,
attachments?: Attachment[],
cc?: string[]
) => Promise<any>;
For more details, refer to the official documentation:
Amazon SES API Reference: SendEmail OR Getting Started: Send an Email with Amazon SES
Upvotes: 0
Reputation: 322
If you run into this issue, I ended needing to update Source and used something like this no-reply@YOUR_DOMAIN_NAME.com
import { SESClient, SendEmailCommand } from '@aws-sdk/client-ses';
const command = new SendEmailCommand({
Destination: {
ToAddresses: ['[email protected]'],
},
Message: {
Body: {
Text: { Data: "Test" },
},
Subject: { Data: 'Subject name' },
},
Source: 'no-reply@YOUR_DOMAIN_NAME.com',
});
await SES_CLEINT.send(command);
Upvotes: 0
Reputation: 25088
I had this error and the problem was that my to_addresses
email address was malformed.
Upvotes: 6
Reputation: 51
Recently there might to be an issue with putting an email address at the end of a sentence that ends with a period the content of a message (in text/English) like:
"Send your request to [email protected]."
SNS or some of message processors (on AWS) now appear to process textural content for words that look like domains. The sentence above passes grammar checks however seems to fails a regex for valid domain the period at the end suggests the could be follow on characters.
Upvotes: 0
Reputation: 4997
I used a malformed e-mail address in Source
when I got this error.
Upvotes: 1