How to check MailMessage was delivered in .NET?

后端 未结 4 1647
旧时难觅i
旧时难觅i 2020-12-11 11:45

Is there a way to check if SmtpClient successfully delivered an email? SmtpClient.Send() does not appear to return anything other than an exception. So if the method complet

4条回答
  •  渐次进展
    2020-12-11 12:10

    No, there is no reliable way to find out if a message was indeed delivered.

    Doing so will require access to the end SMTP server for every person you are emailing.

    If you do not get an exception, you can assume that the SMTP server did its best to deliver the email.

提交回复
热议问题