Я пытаюсь отправить электронную почту через AWS SES, но я получаю эту ошибку:
botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the SendEmail operation: Illegal address
Я уже проверил электронное письмо, которое я отправляю в и из. Это мой код:
import boto3
client = boto3.client(
    'ses',
    aws_access_key_id=AWS_ACCESS_KEY,
    aws_secret_access_key=AWS_SECRET_KEY
)
response = client.send_email(
    Destination={
        'ToAddresses': [
            '[email protected]',
        ],
    },
    Message={
        'Body': {
            'Html': {
                'Charset': 'UTF-8',
                'Data': 'This message body contains HTML formatting. It can, for example, contain links like this one: <a class="ulink" href="#" onclick="location.href='http://docs.aws.amazon.com/ses/latest/DeveloperGuide'; return false;" target="_blank">Amazon SES Developer Guide</a>.',
            },
            'Text': {
                'Charset': 'UTF-8',
                'Data': 'This is the message body in text format.',
            },
        },
        'Subject': {
            'Charset': 'UTF-8',
            'Data': 'Test email',
        },
    },
    ReplyToAddresses=[
    ],
    ReturnPath='',
    ReturnPathArn='',
    Source='[email protected]',
    SourceArn='',
)
Как я могу это исправить?
