4
I am trying to verify if an email sent from my application is successfully sent, wanting to know if the recipient receives it or not (full mailbox, invalid email, around). From what I’ve researched there is deliverynotificationoptions
that the match should give me information whether the email was sent or not.
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.Delay;
Then I try to send the email:
try
{
SmtpCliente.Send(mail);
}
catch (Exception ex)
{
return ex.Message;
}
The truth is I’m not getting that information... Is there another way to get this information, or is it really impossible?
Hello. A detail, the
DeliveryNotificationOptions
are flags. why to use them should do.OnFailure | .OnSuccess | .Delay
.– Omni