使用System.Net.Mail请求交货收据并读取收据
我们在应用程序中使用System.Net.Mail命名空间向用户发送电子邮件。 在使用上述名称空间(也不使用任何第三方库)发送电子邮件时,是否有方法可以请求送达回执和读取回执选项使用System.Net.Mail请求交货收据并读取收据,.net,smtpclient,system.net.mail,.net,Smtpclient,System.net.mail,我们在应用程序中使用System.Net.Mail命名空间向用户发送电子邮件。 在使用上述名称空间(也不使用任何第三方库)发送电子邮件时,是否有方法可以请求送达回执和读取回执选项 MailMessage SendMail = new MailMessage(); //other code to configure to, from, subject, body etc... //for read receipt SendMail.Headers.Add ("Dispo
MailMessage SendMail = new MailMessage();
//other code to configure to, from, subject, body etc...
//for read receipt
SendMail.Headers.Add ("Disposition-Notification-To", "email@gmail.com");
//for delivery receipt
SendMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess