发送带收货收据的邮件?
问题描述:
我使用的功能可以将电子邮件发送给某些用户。发送带收货收据的邮件?
我使用下面的代码时的消息未能到达用户发送送达通知失败消息的发送者电子邮件
。
我使用下面的代码。
System.Web.Mail.MailMessage messagetest = new System.Web.Mail.MailMessage();
messagetest.Headers.Add("Disposition-Notification-To", txtFrom.Text);
现在我想让发件人在邮件成功到达时收到Delivered回执邮件。
这怎么办?如果你需要他们
messagetest .DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;
There are a few other options as well:
感谢
谢谢尼克 但我想实现这与System.Web.Mail.MailMessage类。这是可行的吗? – 2010-03-29 15:06:33
@Mina - 我不确定,整个'System.Web.Mail'命名空间现在已被弃用...让我看看我能找到什么。 – 2010-03-29 15:08:34
@Mina - 有没有移动到System.Net.Mail的原因?它应该是一个相当无痛的升级,只是好奇。 – 2010-03-29 15:12:17