1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta name="GENERATOR" content="PasDoc 0.9.0">
|
---|
5 | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
---|
6 | <title>mimemess: Class TMimeMess</title>
|
---|
7 | <link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
---|
8 | </head>
|
---|
9 | <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
|
---|
10 | <a name="TMimeMess"></a><h1 class="cio">Class TMimeMess</h1>
|
---|
11 | <table class="sections">
|
---|
12 | <tr>
|
---|
13 | <td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#@Methods">Methods</a></td><td><a class="section" href="#@Properties">Properties</a></td></tr></table>
|
---|
14 | <a name="@Description"></a><h2 class="unit">Unit</h2>
|
---|
15 | <p class="unitlink">
|
---|
16 | <a href="mimemess.html">mimemess</a></p>
|
---|
17 | <h2 class="declaration">Declaration</h2>
|
---|
18 | <p class="declaration">
|
---|
19 | <code>type TMimeMess = class(TObject)</code></p>
|
---|
20 | <h2 class="description">Description</h2>
|
---|
21 | <p>
|
---|
22 | Object for handling of e-mail message.</p>
|
---|
23 | <a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
|
---|
24 | <ul class="hierarchy"><li class="ancestor">TObject</li>
|
---|
25 | <li class="thisitem">TMimeMess</li></ul><h2 class="overview">Overview</h2>
|
---|
26 | <a name="@Methods"></a><h3 class="summary">Methods</h3>
|
---|
27 | <table class="summary">
|
---|
28 | <tr class="list">
|
---|
29 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
30 | <td class="itemcode"><code>constructor <b><a href="mimemess.TMimeMess.html#Create">Create</a></b>;</code></td>
|
---|
31 | </tr>
|
---|
32 | <tr class="list2">
|
---|
33 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
34 | <td class="itemcode"><code>constructor <b><a href="mimemess.TMimeMess.html#CreateAltHeaders">CreateAltHeaders</a></b>(HeadClass: <a href="mimemess.html#TMessHeaderClass">TMessHeaderClass</a>);</code></td>
|
---|
35 | </tr>
|
---|
36 | <tr class="list">
|
---|
37 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
38 | <td class="itemcode"><code>destructor <b><a href="mimemess.TMimeMess.html#Destroy">Destroy</a></b>; override;</code></td>
|
---|
39 | </tr>
|
---|
40 | <tr class="list2">
|
---|
41 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
42 | <td class="itemcode"><code>procedure <b><a href="mimemess.TMimeMess.html#Clear">Clear</a></b>; virtual;</code></td>
|
---|
43 | </tr>
|
---|
44 | <tr class="list">
|
---|
45 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
46 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPart">AddPart</a></b>(const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimePart</a>;</code></td>
|
---|
47 | </tr>
|
---|
48 | <tr class="list2">
|
---|
49 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
50 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartMultipart">AddPartMultipart</a></b>(const MultipartType: String; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimePart</a>;</code></td>
|
---|
51 | </tr>
|
---|
52 | <tr class="list">
|
---|
53 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
54 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartText">AddPartText</a></b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
55 | </tr>
|
---|
56 | <tr class="list2">
|
---|
57 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
58 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartTextEx">AddPartTextEx</a></b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>; PartCharset: <a href="synachar.html#TMimeChar">TMimeChar</a>; Raw: Boolean; PartEncoding: <a href="mimepart.html#TMimeEncoding">TMimeEncoding</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
59 | </tr>
|
---|
60 | <tr class="list">
|
---|
61 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
62 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartHTML">AddPartHTML</a></b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
63 | </tr>
|
---|
64 | <tr class="list2">
|
---|
65 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
66 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartTextFromFile">AddPartTextFromFile</a></b>(const FileName: String; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
67 | </tr>
|
---|
68 | <tr class="list">
|
---|
69 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
70 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartHTMLFromFile">AddPartHTMLFromFile</a></b>(const FileName: String; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
71 | </tr>
|
---|
72 | <tr class="list2">
|
---|
73 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
74 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartBinary">AddPartBinary</a></b>(const Stream: TStream; const FileName: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
75 | </tr>
|
---|
76 | <tr class="list">
|
---|
77 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
78 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartBinaryFromFile">AddPartBinaryFromFile</a></b>(const FileName: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
79 | </tr>
|
---|
80 | <tr class="list2">
|
---|
81 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
82 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartHTMLBinary">AddPartHTMLBinary</a></b>(const Stream: TStream; const FileName, Cid: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
83 | </tr>
|
---|
84 | <tr class="list">
|
---|
85 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
86 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartHTMLBinaryFromFile">AddPartHTMLBinaryFromFile</a></b>(const FileName, Cid: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
87 | </tr>
|
---|
88 | <tr class="list2">
|
---|
89 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
90 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartMess">AddPartMess</a></b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
91 | </tr>
|
---|
92 | <tr class="list">
|
---|
93 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
94 | <td class="itemcode"><code>function <b><a href="mimemess.TMimeMess.html#AddPartMessFromFile">AddPartMessFromFile</a></b>(const FileName: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
95 | </tr>
|
---|
96 | <tr class="list2">
|
---|
97 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
98 | <td class="itemcode"><code>procedure <b><a href="mimemess.TMimeMess.html#EncodeMessage">EncodeMessage</a></b>;</code></td>
|
---|
99 | </tr>
|
---|
100 | <tr class="list">
|
---|
101 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
102 | <td class="itemcode"><code>procedure <b><a href="mimemess.TMimeMess.html#DecodeMessage">DecodeMessage</a></b>;</code></td>
|
---|
103 | </tr>
|
---|
104 | <tr class="list2">
|
---|
105 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
106 | <td class="itemcode"><code>procedure <b><a href="mimemess.TMimeMess.html#DecodeMessageBinary">DecodeMessageBinary</a></b>(AHeader:TStrings; AData:TMemoryStream);</code></td>
|
---|
107 | </tr>
|
---|
108 | </table>
|
---|
109 | <a name="@Properties"></a><h3 class="summary">Properties</h3>
|
---|
110 | <table class="summary">
|
---|
111 | <tr class="list">
|
---|
112 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
---|
113 | <td class="itemcode"><code>property <b><a href="mimemess.TMimeMess.html#MessagePart">MessagePart</a></b>: <a href="mimepart.TMimePart.html">TMimePart</a> read FMessagePart;</code></td>
|
---|
114 | </tr>
|
---|
115 | <tr class="list2">
|
---|
116 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
---|
117 | <td class="itemcode"><code>property <b><a href="mimemess.TMimeMess.html#Lines">Lines</a></b>: TStringList read FLines;</code></td>
|
---|
118 | </tr>
|
---|
119 | <tr class="list">
|
---|
120 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
---|
121 | <td class="itemcode"><code>property <b><a href="mimemess.TMimeMess.html#Header">Header</a></b>: <a href="mimemess.TMessHeader.html">TMessHeader</a> read FHeader;</code></td>
|
---|
122 | </tr>
|
---|
123 | </table>
|
---|
124 | <h2 class="description">Description</h2>
|
---|
125 | <h3 class="detail">Methods</h3>
|
---|
126 | <table class="detail">
|
---|
127 | <tr class="list">
|
---|
128 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
129 | <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
|
---|
130 | </tr>
|
---|
131 | </table>
|
---|
132 | <table class="detail">
|
---|
133 | <tr class="list">
|
---|
134 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
135 | <td class="itemcode"><a name="CreateAltHeaders"></a><code>constructor <b>CreateAltHeaders</b>(HeadClass: <a href="mimemess.html#TMessHeaderClass">TMessHeaderClass</a>);</code></td>
|
---|
136 | </tr>
|
---|
137 | </table>
|
---|
138 | <p>
|
---|
139 | create this object and assign your own descendant of <a class="normal" href="mimemess.TMessHeader.html">TMessHeader</a> object to <a class="normal" href="mimemess.TMimeMess.html#Header">Header</a> property. So, you can create your own message headers parser and use it by this object.</p>
|
---|
140 | <table class="detail">
|
---|
141 | <tr class="list">
|
---|
142 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
143 | <td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
|
---|
144 | </tr>
|
---|
145 | </table>
|
---|
146 | <table class="detail">
|
---|
147 | <tr class="list">
|
---|
148 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
149 | <td class="itemcode"><a name="Clear"></a><code>procedure <b>Clear</b>; virtual;</code></td>
|
---|
150 | </tr>
|
---|
151 | </table>
|
---|
152 | <p>
|
---|
153 | Reset component to default state.</p>
|
---|
154 | <table class="detail">
|
---|
155 | <tr class="list">
|
---|
156 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
157 | <td class="itemcode"><a name="AddPart"></a><code>function <b>AddPart</b>(const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimePart</a>;</code></td>
|
---|
158 | </tr>
|
---|
159 | </table>
|
---|
160 | <p>
|
---|
161 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then one subpart, you must have PartParent of multipart type!</p>
|
---|
162 | <table class="detail">
|
---|
163 | <tr class="list">
|
---|
164 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
165 | <td class="itemcode"><a name="AddPartMultipart"></a><code>function <b>AddPartMultipart</b>(const MultipartType: String; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimePart</a>;</code></td>
|
---|
166 | </tr>
|
---|
167 | </table>
|
---|
168 | <p>
|
---|
169 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
170 |
|
---|
171 | <p>This part is marked as multipart with secondary MIME type specified by MultipartType parameter. (typical value is 'mixed')
|
---|
172 |
|
---|
173 | <p>This part can be used as PartParent for another parts (include next multipart). If you need only one part, then you not need Multipart part.</p>
|
---|
174 | <table class="detail">
|
---|
175 | <tr class="list">
|
---|
176 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
177 | <td class="itemcode"><a name="AddPartText"></a><code>function <b>AddPartText</b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
178 | </tr>
|
---|
179 | </table>
|
---|
180 | <p>
|
---|
181 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
182 |
|
---|
183 | <p>After creation of part set type to text part and set all necessary properties. Content of part is readed from value stringlist.</p>
|
---|
184 | <table class="detail">
|
---|
185 | <tr class="list">
|
---|
186 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
187 | <td class="itemcode"><a name="AddPartTextEx"></a><code>function <b>AddPartTextEx</b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>; PartCharset: <a href="synachar.html#TMimeChar">TMimeChar</a>; Raw: Boolean; PartEncoding: <a href="mimepart.html#TMimeEncoding">TMimeEncoding</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
188 | </tr>
|
---|
189 | </table>
|
---|
190 | <p>
|
---|
191 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
192 |
|
---|
193 | <p>After creation of part set type to text part and set all necessary properties. Content of part is readed from value stringlist. You can select your charset and your encoding type. If Raw is <code>True</code>, then it not doing charset conversion!</p>
|
---|
194 | <table class="detail">
|
---|
195 | <tr class="list">
|
---|
196 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
197 | <td class="itemcode"><a name="AddPartHTML"></a><code>function <b>AddPartHTML</b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
198 | </tr>
|
---|
199 | </table>
|
---|
200 | <p>
|
---|
201 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
202 |
|
---|
203 | <p>After creation of part set type to text part to HTML type and set all necessary properties. Content of HTML part is readed from Value stringlist.</p>
|
---|
204 | <table class="detail">
|
---|
205 | <tr class="list">
|
---|
206 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
207 | <td class="itemcode"><a name="AddPartTextFromFile"></a><code>function <b>AddPartTextFromFile</b>(const FileName: String; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
208 | </tr>
|
---|
209 | </table>
|
---|
210 | <p>
|
---|
211 | Same as <a class="normal" href="mimemess.TMimeMess.html#AddPartText">AddPartText</a>, but content is readed from file</p>
|
---|
212 | <table class="detail">
|
---|
213 | <tr class="list">
|
---|
214 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
215 | <td class="itemcode"><a name="AddPartHTMLFromFile"></a><code>function <b>AddPartHTMLFromFile</b>(const FileName: String; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
216 | </tr>
|
---|
217 | </table>
|
---|
218 | <p>
|
---|
219 | Same as <a class="normal" href="mimemess.TMimeMess.html#AddPartHTML">AddPartHTML</a>, but content is readed from file</p>
|
---|
220 | <table class="detail">
|
---|
221 | <tr class="list">
|
---|
222 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
223 | <td class="itemcode"><a name="AddPartBinary"></a><code>function <b>AddPartBinary</b>(const Stream: TStream; const FileName: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
224 | </tr>
|
---|
225 | </table>
|
---|
226 | <p>
|
---|
227 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
228 |
|
---|
229 | <p>After creation of part set type to binary and set all necessary properties. MIME primary and secondary types defined automaticly by filename extension. Content of binary part is readed from Stream. This binary part is encoded as file attachment.</p>
|
---|
230 | <table class="detail">
|
---|
231 | <tr class="list">
|
---|
232 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
233 | <td class="itemcode"><a name="AddPartBinaryFromFile"></a><code>function <b>AddPartBinaryFromFile</b>(const FileName: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
234 | </tr>
|
---|
235 | </table>
|
---|
236 | <p>
|
---|
237 | Same as <a class="normal" href="mimemess.TMimeMess.html#AddPartBinary">AddPartBinary</a>, but content is readed from file</p>
|
---|
238 | <table class="detail">
|
---|
239 | <tr class="list">
|
---|
240 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
241 | <td class="itemcode"><a name="AddPartHTMLBinary"></a><code>function <b>AddPartHTMLBinary</b>(const Stream: TStream; const FileName, Cid: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
242 | </tr>
|
---|
243 | </table>
|
---|
244 | <p>
|
---|
245 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
246 |
|
---|
247 | <p>After creation of part set type to binary and set all necessary properties. MIME primary and secondary types defined automaticly by filename extension. Content of binary part is readed from Stream.
|
---|
248 |
|
---|
249 | <p>This binary part is encoded as inline data with given Conten ID (cid). Content ID can be used as reference ID in HTML source in HTML part.</p>
|
---|
250 | <table class="detail">
|
---|
251 | <tr class="list">
|
---|
252 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
253 | <td class="itemcode"><a name="AddPartHTMLBinaryFromFile"></a><code>function <b>AddPartHTMLBinaryFromFile</b>(const FileName, Cid: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
254 | </tr>
|
---|
255 | </table>
|
---|
256 | <p>
|
---|
257 | Same as <a class="normal" href="mimemess.TMimeMess.html#AddPartHTMLBinary">AddPartHTMLBinary</a>, but content is readed from file</p>
|
---|
258 | <table class="detail">
|
---|
259 | <tr class="list">
|
---|
260 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
261 | <td class="itemcode"><a name="AddPartMess"></a><code>function <b>AddPartMess</b>(const Value: TStrings; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
262 | </tr>
|
---|
263 | </table>
|
---|
264 | <p>
|
---|
265 | Add MIME part as subpart of PartParent. If you need set root MIME part, then set as PartParent <code>Nil</code> value. If you need set more then 1 subpart, you must have PartParent of multipart type!
|
---|
266 |
|
---|
267 | <p>After creation of part set type to message and set all necessary properties. MIME primary and secondary types are setted to 'message/rfc822'. Content of raw RFC-822 message is readed from Stream.</p>
|
---|
268 | <table class="detail">
|
---|
269 | <tr class="list">
|
---|
270 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
271 | <td class="itemcode"><a name="AddPartMessFromFile"></a><code>function <b>AddPartMessFromFile</b>(const FileName: string; const PartParent: <a href="mimepart.TMimePart.html">TMimePart</a>): <a href="mimepart.TMimePart.html">TMimepart</a>;</code></td>
|
---|
272 | </tr>
|
---|
273 | </table>
|
---|
274 | <p>
|
---|
275 | Same as <a class="normal" href="mimemess.TMimeMess.html#AddPartMess">AddPartMess</a>, but content is readed from file</p>
|
---|
276 | <table class="detail">
|
---|
277 | <tr class="list">
|
---|
278 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
279 | <td class="itemcode"><a name="EncodeMessage"></a><code>procedure <b>EncodeMessage</b>;</code></td>
|
---|
280 | </tr>
|
---|
281 | </table>
|
---|
282 | <p>
|
---|
283 | Compose message from <a class="normal" href="mimemess.TMimeMess.html#MessagePart">MessagePart</a> to <a class="normal" href="mimemess.TMimeMess.html#Lines">Lines</a>. Headers from <a class="normal" href="mimemess.TMimeMess.html#Header">Header</a> object is added also.</p>
|
---|
284 | <table class="detail">
|
---|
285 | <tr class="list">
|
---|
286 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
287 | <td class="itemcode"><a name="DecodeMessage"></a><code>procedure <b>DecodeMessage</b>;</code></td>
|
---|
288 | </tr>
|
---|
289 | </table>
|
---|
290 | <p>
|
---|
291 | Decode message from <a class="normal" href="mimemess.TMimeMess.html#Lines">Lines</a> to <a class="normal" href="mimemess.TMimeMess.html#MessagePart">MessagePart</a>. Massage headers are parsed into <a class="normal" href="mimemess.TMimeMess.html#Header">Header</a> object.</p>
|
---|
292 | <table class="detail">
|
---|
293 | <tr class="list">
|
---|
294 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
295 | <td class="itemcode"><a name="DecodeMessageBinary"></a><code>procedure <b>DecodeMessageBinary</b>(AHeader:TStrings; AData:TMemoryStream);</code></td>
|
---|
296 | </tr>
|
---|
297 | </table>
|
---|
298 | <p>
|
---|
299 | HTTP message is received by <a class="normal" href="httpsend.THTTPSend.html">THTTPSend</a> component in two parts: headers are stored in <a class="normal" href="httpsend.THTTPSend.html">THTTPSend</a>.<a class="normal" href="httpsend.THTTPSend.html#Headers">Headers</a> and a body in memory stream <a class="normal" href="httpsend.THTTPSend.html">THTTPSend</a>.<a class="normal" href="httpsend.THTTPSend.html#Document">Document</a>.
|
---|
300 |
|
---|
301 | <p>On the top of it, HTTP connections are always 8-bit, hence data are transferred in native format i.e. no transfer encoding is applied.
|
---|
302 |
|
---|
303 | <p>This method operates the similiar way and produces the same result as <a class="normal" href="mimemess.TMimeMess.html#DecodeMessage">DecodeMessage</a>.</p>
|
---|
304 | <h3 class="detail">Properties</h3>
|
---|
305 | <table class="detail">
|
---|
306 | <tr class="list">
|
---|
307 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
---|
308 | <td class="itemcode"><a name="MessagePart"></a><code>property <b>MessagePart</b>: <a href="mimepart.TMimePart.html">TMimePart</a> read FMessagePart;</code></td>
|
---|
309 | </tr>
|
---|
310 | </table>
|
---|
311 | <p>
|
---|
312 | <a class="normal" href="mimepart.TMimePart.html">TMimePart</a> object with decoded MIME message. This object can handle any number of nested <a class="normal" href="mimepart.TMimePart.html">TMimePart</a> objects itself. It is used for handle any tree of MIME subparts.</p>
|
---|
313 | <table class="detail">
|
---|
314 | <tr class="list">
|
---|
315 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
---|
316 | <td class="itemcode"><a name="Lines"></a><code>property <b>Lines</b>: TStringList read FLines;</code></td>
|
---|
317 | </tr>
|
---|
318 | </table>
|
---|
319 | <p>
|
---|
320 | Raw MIME encoded message.</p>
|
---|
321 | <table class="detail">
|
---|
322 | <tr class="list">
|
---|
323 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
---|
324 | <td class="itemcode"><a name="Header"></a><code>property <b>Header</b>: <a href="mimemess.TMessHeader.html">TMessHeader</a> read FHeader;</code></td>
|
---|
325 | </tr>
|
---|
326 | </table>
|
---|
327 | <p>
|
---|
328 | Object for e-mail header fields. This object is created automaticly. Do not free this object!</p>
|
---|
329 | <hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:51</em>
|
---|
330 | </span>
|
---|
331 | </body></html>
|
---|