Asp.net Method for sending an email to get the read receipt (transfer, not verified)

Source: Internet
Author: User

According to the requirements of the customer service department, after sending an email to the customer, the customer needs to send a receipt message to the sender when reading the email so that we can know that the customer has received the email and started reading it. This function is easy to set up in a general QQ mailbox or other mailboxes. You only need to check it. But we use. Net to writeProgramSend emails directly, so you can only modifyCode, Google a circle, a lot of effort, but still in msdn to find the http://msdn2.microsoft.com/en-us/vbasic%20/bb630227.aspx, it should be more authoritative, although it is English, however, it can be understood by means of translation tools. The key here is to set it like this.

Mymailmessage. headers. Add ("disposition-Notification-to", returnreceipt@return.com)// The following email address is the email address for receiving the receipt.

Pass the test. OK.

By the way, some other methods on the Internet are also collected. For more information, see:
1. In the. NET 1.1 Environment
1) using system. Web. Mail, the receipt function cannot be tested successfully. 2) When using the cdosys. dll component, you can only "receive receipt", but "read receipt" fails. (Cdosys. dll is built in the operating system, under the System32 directory. For more information, see http://blog.csdn.net/irvine007/archive/2006/02/22/606117. aspx)
Ii. In. NET 2.0
Using system. net. Mail of 2.0 and using the method mentioned above, the "read receipt" test failed. But it can be used

Mail. deliverynotificationoptions = deliverynotificationoptions. onsuccess;

Implement the "receive receipt" Function
Finally, with the help of a colleague familiar with the Notes server,

Mail. headers. Add ("returnreceept", "1 ″);

The read receipt is successfully implemented ". Then we tested it in the. NET 1.1 environment and found that it was invalid and could only run normally in the. NET 2.0 Environment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.