How to check if the mail has been sent successfully

前端 未结 8 1404
夕颜
夕颜 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:21

    If you're using System.Net.Mail try out

    message.DeliveryNotificationOptions = System.Net.Mail.DeliveryNotificationOptions.OnSuccess;
    

提交回复
热议问题