Take JavaMail to get a back letter of Hotmail

xiaoxiao2021-03-06  40

Hotmail is my most commonly used Email Client. Although the capacity of Hotmail is small, the speed is often slow to greet the mother of Gates. But it is undeniable that it is quite rich and stable. Especially other page design is an important reference of the web programmer.

Not like a lot of POP3 servers, Hotmail implements mail transfer status notifications. I have written the mail client for previously written Multipart / Related, Multipart / Alternative and Multipart / Mixed, etc.

The customer does not agree, there is anything to say, what else is more important than letting customers satisfied, not to pay before.

Multipart / Report Mail Type of Mail Type See

Chinese in the RFC1892, Sun

There is also a relevant note in JavaMail FAQ. I excerpts as follows:

Q. When the message cannot be transferred, a failed message will be returned. How do I detect these "rebound" messages? A: Although there is an Internet standard to report such errors (see RFC1892), refer to RFC1892), but it has not been widely implemented. The RFC1211 discusses in-depth discussion, including a large number of examples. In Internet email, a specific mailbox or username is existing, only the final server of the transfer message can be determined. The message may pass several relay servers (they can't detect errors), and then reach the final server. Typically, when the final server detects this error, it returns a message to the original message, pointing out the reason for failure. There are many Internet standards discussing this Delivery Status Notifications, but a large number of servers do not support these new standards, which use special techniques to return this error message. This makes it very difficult to associate "rebound" messages with the original news that have problems (note that this problem is completely unrelated to JavaMail). There are many technologies and test methods to handle this problem, but they are not perfect. One technique is Variable Envelope Return Paths, http: //cr.yp.to/proto/verp.txt describes this technology. I have modified the program, but also made some simple processing, the code is as follows: private void Parsemultipart (multipart multipart) throws exception {for (int i = 0, n = multipart.getCount (); i

转载请注明原文地址:https://www.9cbs.com/read-59010.html

New Post(0)