Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. Delivered-To: test@gmail.com
  2. Received: by 10.42.166.2 with SMTP id m2cs16081icy;
  3. Thu, 3 Mar 2011 17:01:48 -0800 (PST)
  4. Received: by 10.229.211.138 with SMTP id go10mr1544841qcb.195.1299200507499;
  5. Thu, 03 Mar 2011 17:01:47 -0800 (PST)
  6. Return-Path: <info@example.com>
  7. Received: from beta.example.com (testtest.test.com [69.123.123.123])
  8. by mx.google.com with ESMTP id j14si1690118qcu.136.2011.03.03.17.01.46;
  9. Thu, 03 Mar 2011 17:01:46 -0800 (PST)
  10. Received-SPF: neutral (google.com: 69.123.123.123 is neither permitted nor denied by best guess record for domain of info@example.com) client-ip=69.123.123.123;
  11. Authentication-Results: mx.google.com; spf=neutral (google.com: 69.123.123.123 is neither permitted nor denied by best guess record for domain of info@example.com) smtp.mail=info@example.com
  12. Received: from localhost.localdomain (localhost [127.0.0.1])
  13. by beta.example.com (Postfix) with ESMTP id F3C273A3EC
  14. for <test@gmail.com>; Fri, 4 Mar 2011 01:01:45 +0000 (UTC)
  15. Date: Fri, 04 Mar 2011 01:01:45 +0000
  16. From: info@example.com
  17. To: test@gmail.com
  18. Message-ID: <4d7039f9e9d3e_3449482ab7831658@test.mail>
  19. Subject: Your example account was activated.
  20. Mime-Version: 1.0
  21. Content-Type: multipart/alternative;
  22. boundary="--==_mimepart_4d7039f9e6967_3449482ab7831370";
  23. charset=UTF-8
  24. Content-Transfer-Encoding: 7bit
  25.  
  26.  
  27.  
  28. ----==_mimepart_4d7039f9e6967_3449482ab7831370
  29. Date: Fri, 04 Mar 2011 01:01:45 +0000
  30. Mime-Version: 1.0
  31. Content-Type: text/html;
  32. charset=UTF-8
  33. Content-Transfer-Encoding: 7bit
  34. Content-ID: <4d7039f9e95ed_3449482ab7831519@test.mail>
  35.  
  36. <html>
  37. <head>
  38. <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
  39. </head>
  40. <body>
  41. <p><a href="http://example.com/"><img border="0" src="http://example.com/images/logo.png" alt="example logo" /></a></p>
  42. <p>Congratulations, Test!</p>
  43. <p>
  44. Your <a style="text-decoration:none;color:#ef4923;" href="http://example.com/">example</a> account was activated.
  45. </p>
  46. </body>
  47. </html>
  48.  
  49. ----==_mimepart_4d7039f9e6967_3449482ab7831370
  50. Date: Fri, 04 Mar 2011 01:01:45 +0000
  51. Mime-Version: 1.0
  52. Content-Type: text/plain;
  53. charset=UTF-8
  54. Content-Transfer-Encoding: 7bit
  55. Content-ID: <4d7039f9e8b0e_3449482ab78314b7@test.mail>
  56.  
  57. Congratulations, Test!
  58.  
  59. Your example.com account was activated.
  60.  
  61. ----==_mimepart_4d7039f9e6967_3449482ab7831370--
  62.  
  63. 7.2.3 The Multipart/alternative subtype
  64. The multipart/alternative type is syntactically identical to multipart/mixed,
  65. but the semantics are different. In particular, each of the parts is an
  66. "alternative" version of the same information. User agents should recognize
  67. that the content of the various parts are interchangeable. The user agent
  68. should either choose the "best" type based on the user's environment and
  69. preferences, or offer the user the available alternatives. In general, choosing
  70. the best type means displaying only the LAST part that can be displayed. This
  71. may be used, for example, to send mail in a fancy text format in such a way
  72. that it can easily be displayed anywhere:
  73.  
  74. From: Nathaniel Borenstein <nsb@bellcore.com>
  75. To: Ned Freed <ned@innosoft.com>
  76. Subject: Formatted text mail
  77. MIME-Version: 1.0
  78. Content-Type: multipart/alternative; boundary=boundary42
  79.  
  80.  
  81. --boundary42
  82. Content-Type: text/plain; charset=us-ascii
  83.  
  84. ...plain text version of message goes here....
  85.  
  86. --boundary42
  87. Content-Type: text/richtext
  88.  
  89. .... richtext version of same message goes here ...
  90. --boundary42
  91. Content-Type: text/x-whatever
  92.  
  93. .... fanciest formatted version of same message goes here
  94. ...
  95. --boundary42--
  96.  
  97. In this example, users whose mail system understood the "text/x-whatever"
  98. format would see only the fancy version, while other users would see only the
  99. richtext or plain text version, depending on the capabilities of their system.
  100.  
  101. In general, user agents that compose multipart/alternative entities should
  102. place the body parts in increasing order of preference, that is, with the
  103. preferred format last. For fancy text, the sending user agent should put the
  104. plainest format first and the richest format last. Receiving user agents should
  105. pick and display the last format they are capable of displaying. In the case
  106. where one of the alternatives is itself of type "multipart" and contains
  107. unrecognized sub-parts, the user agent may choose either to show that
  108. alternative, an earlier alternative, or both.
  109.  
  110. NOTE: From an implementor's perspective, it might seem more sensible to reverse
  111. this ordering, and have the plainest alternative last. However, placing the
  112. plainest alternative first is the friendliest possible option when
  113. multipart/alternative entities are viewed using a non-MIME- compliant mail
  114. reader. While this approach does impose some burden on compliant mail readers,
  115. interoperability with older mail readers was deemed to be more important in
  116. this case.
  117.  
  118. It may be the case that some user agents, if they can recognize more than one
  119. of the formats, will prefer to offer the user the choice of which format to
  120. view. This makes sense, for example, if mail includes both a nicely-formatted
  121. image version and an easily-edited text version. What is most critical, however,
  122. is that the user not automatically be shown multiple versions of the same data.
  123. Either the user should be shown the last recognized version or should
  124. explicitly be given the choice.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement