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.