4ca45d7b |
1 | <p> |
14d10786 |
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). |
4ca45d7b |
5 | </p> |
14d10786 |
6 | |
4ca45d7b |
7 | <pre> |
050432de |
8 | $message ["HEADER"] (array) |
9 | ["TO"] (array) |
10 | ["CC"] (array) |
11 | ["SUBJECT"] (string) |
12 | ["FROM"] (string) |
13 | ["REPLYTO"] (string) |
14 | ["MAILER"] (string) |
15 | ["TYPE0"] (string) |
16 | ["TYPE1"] (string) |
17 | ["BOUNDARY"] (string) |
18 | ["CHARSET"] (string) |
19 | ["MIME"] (boolean) |
20 | ["ENCODING"] (string) |
1f3acd91 |
21 | ["MESSAGE-ID"] (string) |
14d10786 |
22 | |
050432de |
23 | ["ENTITIES"] (array) |
24 | [0] (array) |
25 | ["TYPE0"] (string) |
26 | ["TYPE1"] (string) |
27 | ["CHARSET"] (string) |
28 | ["BOUNDARY"] (string) |
29 | ["PRIORITY"] (integer) |
30 | ["BODY"] (array of strings) |
14d10786 |
31 | |
050432de |
32 | [1] (array) |
33 | ["TYPE0"] (string) |
34 | ["TYPE1"] (string) |
35 | ["CHARSET"] (string) |
36 | ["BOUNDARY"] (string) |
37 | ["PRIORITY"] (integer) |
38 | ["BODY"] (array of strings) |
14d10786 |
39 | . |
40 | . |
41 | . |
42 | |
43 | |
44 | Example message: |
45 | ---------------------------------------------------------------------- |
46 | $message ["HEADER"] |
47 | ["TO"] "luke@usa.om.org," |
48 | "nathan@usa.om.org" |
49 | ["CC"] "matt@usa.om.org" |
50 | ["SUBJECT"] "hey there.. just testing" |
51 | ["FROM"] "typist@usa.om.org" |
52 | ["REPLYTO"] "" |
53 | ["MAILER"] "SquirrelMail v0.0.1" |
54 | ["TYPE0"] "multipart" |
55 | ["TYPE1"] "alternative" |
56 | ["BOUNDARY"] "--blkjoaiu2093ojv0q9" |
57 | ["CHARSET"] "us-ascii" |
050432de |
58 | ["MIME"] true |
59 | ["ENCODING"] "us-ascii" |
14d10786 |
60 | |
61 | ["ENTITIES"] |
62 | [0] |
63 | ["TYPE0"] "text" |
64 | ["TYPE1"] "plain" |
65 | ["CHARSET"] "us-ascii" |
66 | ["BOUNDARY"] "" |
67 | ["PRIORITY"] 10 |
68 | ["BODY"] "This is just a test to see" |
69 | "how this will handle a message" |
70 | "for this example" |
71 | |
72 | [1] |
73 | ["TYPE0"] "text" |
74 | ["TYPE1"] "html" |
75 | ["CHARSET"] "us-ascii" |
76 | ["BOUNDARY"] "" |
77 | ["PRIORITY"] 20 |
4ca45d7b |
78 | ["BODY"] "<B>This is just a test to see</B><BR>" |
79 | "<FONT FACE="Arial,Helvetica">how this will handle a message" |
80 | "for this example</FONT>" |
81 | </pre> |