message_array.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <p>
  2. Here is a map of the message array that contains all the information about
  3. a message. A single part message is handled the same as a multipart message,
  4. except in the "ENTITIES" part, there would only be one entry (0).
  5. </p>
  6. <pre>
  7. $message ["HEADER"] (array)
  8. ["TO"] (array)
  9. ["CC"] (array)
  10. ["SUBJECT"] (string)
  11. ["FROM"] (string)
  12. ["REPLYTO"] (string)
  13. ["MAILER"] (string)
  14. ["TYPE0"] (string)
  15. ["TYPE1"] (string)
  16. ["BOUNDARY"] (string)
  17. ["CHARSET"] (string)
  18. ["MIME"] (boolean)
  19. ["ENCODING"] (string)
  20. ["MESSAGE-ID"] (string)
  21. ["ENTITIES"] (array)
  22. [0] (array)
  23. ["TYPE0"] (string)
  24. ["TYPE1"] (string)
  25. ["CHARSET"] (string)
  26. ["BOUNDARY"] (string)
  27. ["PRIORITY"] (integer)
  28. ["BODY"] (array of strings)
  29. [1] (array)
  30. ["TYPE0"] (string)
  31. ["TYPE1"] (string)
  32. ["CHARSET"] (string)
  33. ["BOUNDARY"] (string)
  34. ["PRIORITY"] (integer)
  35. ["BODY"] (array of strings)
  36. .
  37. .
  38. .
  39. Example message:
  40. ----------------------------------------------------------------------
  41. $message ["HEADER"]
  42. ["TO"] "luke@usa.om.org,"
  43. "nathan@usa.om.org"
  44. ["CC"] "matt@usa.om.org"
  45. ["SUBJECT"] "hey there.. just testing"
  46. ["FROM"] "typist@usa.om.org"
  47. ["REPLYTO"] ""
  48. ["MAILER"] "SquirrelMail v0.0.1"
  49. ["TYPE0"] "multipart"
  50. ["TYPE1"] "alternative"
  51. ["BOUNDARY"] "--blkjoaiu2093ojv0q9"
  52. ["CHARSET"] "us-ascii"
  53. ["MIME"] true
  54. ["ENCODING"] "us-ascii"
  55. ["ENTITIES"]
  56. [0]
  57. ["TYPE0"] "text"
  58. ["TYPE1"] "plain"
  59. ["CHARSET"] "us-ascii"
  60. ["BOUNDARY"] ""
  61. ["PRIORITY"] 10
  62. ["BODY"] "This is just a test to see"
  63. "how this will handle a message"
  64. "for this example"
  65. [1]
  66. ["TYPE0"] "text"
  67. ["TYPE1"] "html"
  68. ["CHARSET"] "us-ascii"
  69. ["BOUNDARY"] ""
  70. ["PRIORITY"] 20
  71. ["BODY"] "&lt;B>This is just a test to see&lt;/B>&lt;BR>"
  72. "&lt;FONT FACE="Arial,Helvetica">how this will handle a message"
  73. "for this example&lt;/FONT>"
  74. </pre>