How to check if the mail has been sent successfully

前端 未结 8 1433
夕颜
夕颜 2020-12-24 07:00

I am developing an Asp.Net application, where I am sending a mail to the user\'s email address, if he forgets the password.

I want to check if the mail has been sent

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 07:29

    The SmtpClient.Send method will raise an Exception if there's a problem sending. But beyond getting that message to the SMTP server, there's no way to know if it makes it to the destination from there.

提交回复
热议问题