跳至內容

How can I validate a recipient e-mail address before sending calling SES?

0

We want to send e-mails to user provided addresses for confirmation purposes. We would like to tell users beforehand whether their provided e-mail address is valid or not, so that we don't produce an error at runtime when calling SES.

Since the recipient address validation of SES is more strict than the browser (see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/email#basic_validation), like requiring a top level domain, I was wondering if there is any documentation about validating recipient e-mail addresses.

已提問 2 個月前檢視次數 68 次
1 個回答
0

Hello!
 Thank you for reaching out.

Before addressing your query, allow me to explain that SES is an email service and the email flow looks like below:

Sender client application —> Sender MTA (SES in this case) —> Recipient MTA —> recipient mailbox application

MTA: Mail Transfer Agent (mail server)

Whenever SES receives an email from Client side it acknowledges back with the Message id i.e. after your application sends an email to SES, and SES accepts it for delivery (indicated by a message ID in the response). After SES accepts it, it will make an attempt to deliver the email.

Now, regarding your query, kindly understand that in SES we don’t have a mechanism that can validate the recipient before making an SES call. To achieve the validation of recipient, you can implement some feature at your application end.

Thank you

AWS
已回答 2 個月前
  • Hello, thank you for your reply!

    Unfortunately, this did not answer my question, sorry for being a bit imprecise. The problem is that users can enter an email address that is valid according to the browser validation, but not considered valid by AWS SES. For example, 123@1234 is considered valid by browsers, but leads to errors when trying to send the mail.

    Thank you very much again for your answer and the detailed explanation!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。