Amazon SES failure with smtp retcode 250

Question:

I try to send email with amazon SES API docs below, and python return the code 250 meaing OK but my email got a failure message. Could anyone kindly tell me what maybe the problem? thank you

python:

import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText

# https://us-east-2.console.aws.amazon.com/sesv2/home?region=us-east-2#/account
# https://console.aws.amazon.com/iam/home?#/s=SESHomeV4/us-east-2
mail_host = "email-smtp.us-east-2.amazonaws.com"
mail_user = "AKI....T7H"
mail_pass = "BHJ.....iS/x"

sender = '[email protected]'
receivers = '[email protected]'

msg = MIMEMultipart()
msg['From'] = sender
msg['To'] = receivers
msg['Subject'] = 'simple email in python'
message = 'here is the email'
msg.attach(MIMEText(message))

try:
    print("try smtplib.SMTP")
    smtp = smtplib.SMTP(mail_host, 587)
    smtp.set_debuglevel(True)

    print("try connect")
    smtp.ehlo()
    smtp.starttls()
    smtp.ehlo()
    # smtpObj.connect(mail_host, 465)

    print("try login")
    smtp.login(mail_user, mail_pass)
    print("try sendmail: " + msg.as_string())
    smtp.sendmail(sender, receivers, msg.as_string())
    print("Send Success")
    smtp.close()
except smtplib.SMTPException:
    print("Send Error")

log (Is retcode 250 means success in code side or user side?):

reply: retcode (250); Msg: b'Ok 010f017d8f0f1703-d018f2a9-833e-428e-9010-5e45818e51e4-000000'
data: (250, b'Ok 010f017d8f0f1703-d018f2a9-833e-428e-9010-5e45818e51e4-000000')
Send Success

emails from amazon:

Delivery Status Notification (Failure)
An error occurred while trying to deliver the mail to the following recipients:
[email protected]
here is the email
Asked By: thecr0w

||

Answers:

Just validate your email in amazon console

Answered By: thecr0w