邮件问题 [英] mail problem

查看:79
本文介绍了邮件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在使用smtp服务器发送邮件,发送邮件后,我必须更新数据库,以读取该邮件和不读取该邮件的用户数.

Hello to all,
I am sending the mail using smtp server,after sending the mail I have to update the database the number of users who read the mail and whop didn''t read the mail.

推荐答案

要创建已读回执,您需要在MailMessage中添加标题,例如;
To create a read receipt you need to add a header to the MailMessage like;
MailMessage mail = new MailMessage();

mail.Headers.Add("Disposition-Notification-To", "someaddress@mydomain.com");


只需记住,用户可能不同意发送已读回执,因此您无能为力.


Just remember that a user may not agree to send the read receipt, and there is nothing you can do to force it.


很难准确地说出这些代码,但请尝试...

Hard to say exactly without seeing the code, but try...

objSendMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;



那应该做.



That should do it.


这篇关于邮件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆