I am using C # to send email using System.Net.Mail.
But how do you know if a message has been sent or not sent successfully?
Not a direct answer, but here is a great article from Coding Horror about sending emails through code that solves your question.
The simple answer is: if it is a detected failure, it will SmtpClient.Sendthrow a SmtpFailedRecipientsException (it will throw a SmtpException if there is a connection problem).
SmtpClient.Send
, . , SMTP- ( iis ) , SMTP- .
, " " . , , , (, ).
. , , , , .
, , . , - .., , ( : ).
, , , , . , NDR ( ), ,
, , , , . , . SMTP , , , ndr, , . , , - html . -, URL- . , , URL , , , .
Source: https://habr.com/ru/post/1746671/More articles:SQL Server indexed view matching views with broken connections - sql-serverWCF using windows service - wcfIs recursion possible in a static function? - cJoin Entity Framework - c #Accept-Language based redirection - url-rewritingSelective packaging for jars - javaCache images provided via script - c #Using Int32 or What You Need - mathГде я могу найти массив (un) назначенных кодовых точек Unicode для определенного блока? - perlHow does XmlSiteMapProvider validate a user for a given role? - asp.netAll Articles