File: Poco.Net.MailMessage.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (366 lines) | stat: -rw-r--r-- 34,506 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::Net::MailMessage</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.Net.html" class="namespace">Poco::Net</a></h1>
<h1 class="symbol">class MailMessage</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Net<br />
<b>Package:</b> Mail<br />
<b>Header:</b> Poco/Net/MailMessage.h</p>
<h2>Description</h2>
<div class="description">
<p>This class represents an e-mail message for use with the <a href="Poco.Net.SMTPClientSession.html" title="class Poco::Net::SMTPClientSession">SMTPClientSession</a> and POPClientSession classes. </p>
<p><a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a> supports both old-style plain text messages, as well as MIME multipart mail messages with attachments. </p>
<p>For multi-part messages, the following content transfer encodings are supported: 7bit, 8bit, quoted-printable and base64. </p>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a></p>
<p><b>All Base Classes: </b><a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a>, <a href="Poco.Net.NameValueCollection.html" title="class Poco::Net::NameValueCollection">NameValueCollection</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.Net.MailMessage.html#13707" title="Poco::Net::MailMessage::addAttachment()">addAttachment</a>, <a href="Poco.Net.MailMessage.html#13704" title="Poco::Net::MailMessage::addContent()">addContent</a>, <a href="Poco.Net.MailMessage.html#13699" title="Poco::Net::MailMessage::addPart()">addPart</a>, <a href="Poco.Net.MailMessage.html#13677" title="Poco::Net::MailMessage::addRecipient()">addRecipient</a>, <a href="Poco.Net.MailMessage.html#13760" title="Poco::Net::MailMessage::appendRecipient()">appendRecipient</a>, <a href="Poco.Net.MailMessage.html#13756" title="Poco::Net::MailMessage::contentTransferEncodingToString()">contentTransferEncodingToString</a>, <a href="Poco.Net.MailMessage.html#13718" title="Poco::Net::MailMessage::encodeWord()">encodeWord</a>, <a href="Poco.Net.MailMessage.html#13689" title="Poco::Net::MailMessage::getContent()">getContent</a>, <a href="Poco.Net.MailMessage.html#13694" title="Poco::Net::MailMessage::getContentType()">getContentType</a>, <a href="Poco.Net.MailMessage.html#13697" title="Poco::Net::MailMessage::getDate()">getDate</a>, <a href="Poco.Net.MailMessage.html#13685" title="Poco::Net::MailMessage::getSender()">getSender</a>, <a href="Poco.Net.MailMessage.html#13682" title="Poco::Net::MailMessage::getSubject()">getSubject</a>, <a href="Poco.Net.MailMessage.html#13752" title="Poco::Net::MailMessage::handlePart()">handlePart</a>, <a href="Poco.Net.MailMessage.html#13698" title="Poco::Net::MailMessage::isMultipart()">isMultipart</a>, <a href="Poco.Net.MailMessage.html#13758" title="Poco::Net::MailMessage::lineLength()">lineLength</a>, <a href="Poco.Net.MailMessage.html#13727" title="Poco::Net::MailMessage::makeMultipart()">makeMultipart</a>, <a href="Poco.Net.MailMessage.html#13711" title="Poco::Net::MailMessage::read()">read</a>, <a href="Poco.Net.MailMessage.html#13743" title="Poco::Net::MailMessage::readHeader()">readHeader</a>, <a href="Poco.Net.MailMessage.html#13745" title="Poco::Net::MailMessage::readMultipart()">readMultipart</a>, <a href="Poco.Net.MailMessage.html#13748" title="Poco::Net::MailMessage::readPart()">readPart</a>, <a href="Poco.Net.MailMessage.html#13679" title="Poco::Net::MailMessage::recipients()">recipients</a>, <a href="Poco.Net.MailMessage.html#13686" title="Poco::Net::MailMessage::setContent()">setContent</a>, <a href="Poco.Net.MailMessage.html#13690" title="Poco::Net::MailMessage::setContentType()">setContentType</a>, <a href="Poco.Net.MailMessage.html#13695" title="Poco::Net::MailMessage::setDate()">setDate</a>, <a href="Poco.Net.MailMessage.html#13741" title="Poco::Net::MailMessage::setRecipientHeaders()">setRecipientHeaders</a>, <a href="Poco.Net.MailMessage.html#13683" title="Poco::Net::MailMessage::setSender()">setSender</a>, <a href="Poco.Net.MailMessage.html#13680" title="Poco::Net::MailMessage::setSubject()">setSubject</a>, <a href="Poco.Net.MailMessage.html#13716" title="Poco::Net::MailMessage::write()">write</a>, <a href="Poco.Net.MailMessage.html#13737" title="Poco::Net::MailMessage::writeEncoded()">writeEncoded</a>, <a href="Poco.Net.MailMessage.html#13728" title="Poco::Net::MailMessage::writeHeader()">writeHeader</a>, <a href="Poco.Net.MailMessage.html#13731" title="Poco::Net::MailMessage::writeMultipart()">writeMultipart</a>, <a href="Poco.Net.MailMessage.html#13734" title="Poco::Net::MailMessage::writePart()">writePart</a></p>
<p><b>Inherited Functions: </b><a href="Poco.Net.NameValueCollection.html#14067" title="Poco::Net::NameValueCollection::add()">add</a>, <a href="Poco.Net.NameValueCollection.html#14079" title="Poco::Net::NameValueCollection::begin()">begin</a>, <a href="Poco.Net.NameValueCollection.html#14085" title="Poco::Net::NameValueCollection::clear()">clear</a>, <a href="Poco.Net.NameValueCollection.html#14081" title="Poco::Net::NameValueCollection::empty()">empty</a>, <a href="Poco.Net.NameValueCollection.html#14080" title="Poco::Net::NameValueCollection::end()">end</a>, <a href="Poco.Net.NameValueCollection.html#14083" title="Poco::Net::NameValueCollection::erase()">erase</a>, <a href="Poco.Net.NameValueCollection.html#14077" title="Poco::Net::NameValueCollection::find()">find</a>, <a href="Poco.Net.NameValueCollection.html#14070" title="Poco::Net::NameValueCollection::get()">get</a>, <a href="Poco.Net.NameValueCollection.html#14075" title="Poco::Net::NameValueCollection::has()">has</a>, <a href="Poco.Net.NameValueCollection.html#14062" title="Poco::Net::NameValueCollection::operator()">operator</a>, <a href="Poco.Net.MessageHeader.html#13915" title="Poco::Net::MessageHeader::operator =()">operator&nbsp;=</a>, <a href="Poco.Net.MessageHeader.html#13933" title="Poco::Net::MessageHeader::quote()">quote</a>, <a href="Poco.Net.MessageHeader.html#13919" title="Poco::Net::MessageHeader::read()">read</a>, <a href="Poco.Net.NameValueCollection.html#14064" title="Poco::Net::NameValueCollection::set()">set</a>, <a href="Poco.Net.NameValueCollection.html#14082" title="Poco::Net::NameValueCollection::size()">size</a>, <a href="Poco.Net.MessageHeader.html#13921" title="Poco::Net::MessageHeader::splitElements()">splitElements</a>, <a href="Poco.Net.MessageHeader.html#13925" title="Poco::Net::MessageHeader::splitParameters()">splitParameters</a>, <a href="Poco.Net.NameValueCollection.html#14060" title="Poco::Net::NameValueCollection::swap()">swap</a>, <a href="Poco.Net.MessageHeader.html#13917" title="Poco::Net::MessageHeader::write()">write</a></p>
<h2>Nested Classes</h2>
<h3><a href="Poco.Net.MailMessage.Part.html" class="class">struct Part</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p>&nbsp;<a href="Poco.Net.MailMessage.Part.html"><img src="images/arrow.gif" alt="more..." style="vertical-align:baseline;" border="0" /> </a></p>
<h2>Types</h2>
<h3><a name="13726">PartVec</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">typedef std::vector &lt; <a href="Poco.Net.MailMessage.Part.html" title="struct Poco::Net::MailMessage::Part">Part</a> &gt; <a href="Poco.Net.MailMessage.html#13726" title="Poco::Net::MailMessage::PartVec">PartVec</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13666">Recipients</a></h3>
<p class="decl">typedef std::vector &lt; <a href="Poco.Net.MailRecipient.html" title="class Poco::Net::MailRecipient">MailRecipient</a> &gt; <a href="Poco.Net.MailMessage.html#13666" title="Poco::Net::MailMessage::Recipients">Recipients</a>;</p>
<div class="description">
<p></p>
</div>
<h2>Enumerations</h2>
<h3><a name="13667">ContentDisposition</a></h3>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="13668">CONTENT_INLINE</a></p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="13669">CONTENT_ATTACHMENT</a></p>
<div class="description">
<p></p>
</div>
<h3><a name="13670">ContentTransferEncoding</a></h3>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="13671">ENCODING_7BIT</a></p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="13672">ENCODING_8BIT</a></p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="13673">ENCODING_QUOTED_PRINTABLE</a></p>
<div class="description">
<p></p>
</div>
<p class="decl"><a name="13674">ENCODING_BASE64</a></p>
<div class="description">
<p></p>
</div>
<h2>Constructors</h2>
<h3><a name="13675">MailMessage</a></h3>
<p class="decl"><a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a>();</p>
<div class="description">
<p>Creates an empty <a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a>. </p>
</div>
<h2>Destructor</h2>
<h3><a name="13676">~MailMessage</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual ~<a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="13707">addAttachment</a></h3>
<p class="decl">void addAttachment(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartSource.html" title="class Poco::Net::PartSource">PartSource</a> * pSource,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13670" title="enum  Poco::Net::MailMessage::ContentTransferEncoding">ContentTransferEncoding</a> encoding = ENCODING_BASE64<br />);</p>
<div class="description">
<p>Adds an attachment to the mail message by calling <a href="Poco.Net.MailMessage.html#13699" title="Poco::Net::MailMessage::addPart()">addPart</a>(name, pSource, <a href="Poco.Net.MailMessage.html#13669" title="Poco::Net::MailMessage::CONTENT_ATTACHMENT">CONTENT_ATTACHMENT</a>, encoding); </p>
</div>
<h3><a name="13704">addContent</a></h3>
<p class="decl">void addContent(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartSource.html" title="class Poco::Net::PartSource">PartSource</a> * pSource,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13670" title="enum  Poco::Net::MailMessage::ContentTransferEncoding">ContentTransferEncoding</a> encoding = ENCODING_QUOTED_PRINTABLE<br />);</p>
<div class="description">
<p>Adds a part to the mail message by calling <a href="Poco.Net.MailMessage.html#13699" title="Poco::Net::MailMessage::addPart()">addPart</a>(&quot;&quot;, pSource, <a href="Poco.Net.MailMessage.html#13668" title="Poco::Net::MailMessage::CONTENT_INLINE">CONTENT_INLINE</a>, encoding); </p>
</div>
<h3><a name="13699">addPart</a></h3>
<p class="decl">void addPart(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartSource.html" title="class Poco::Net::PartSource">PartSource</a> * pSource,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13667" title="enum  Poco::Net::MailMessage::ContentDisposition">ContentDisposition</a> disposition,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13670" title="enum  Poco::Net::MailMessage::ContentTransferEncoding">ContentTransferEncoding</a> encoding<br />);</p>
<div class="description">
<p>Adds a part/attachment to the mail message. </p>
<p>The <a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a> takes ownership of the <a href="Poco.Net.PartSource.html" title="class Poco::Net::PartSource">PartSource</a> and deletes it when it is no longer needed. </p>
<p>The <a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a> will be converted to a multipart message if it is not already one. </p>
</div>
<h3><a name="13677">addRecipient</a></h3>
<p class="decl">void addRecipient(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MailRecipient.html" title="class Poco::Net::MailRecipient">MailRecipient</a> &amp; recipient<br />);</p>
<div class="description">
<p>Adds a recipient for the message. </p>
</div>
<h3><a name="13718">encodeWord</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static std::string encodeWord(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; text,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; charset = "UTF-8"<br />);</p>
<div class="description">
<p>If the given string contains non-ASCII characters,  encodes the given string using <a href="http://www.ietf.org/rfc/rfc2047.txt" target="_blank">RFC 2047</a> &quot;Q&quot; word encoding. </p>
<p>The given text must already be encoded in the character set given in charset (default is UTF-8). </p>
<p>Returns the encoded string, or the original string if it  consists only of ASCII characters. </p>
</div>
<h3><a name="13689">getContent</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const std::string &amp; getContent() const;</p>
<div class="description">
<p>Returns the content of the mail message. </p>
<p>A content will only be returned for single-part messages. The content of multi-part mail messages will be reported through the registered <a href="Poco.Net.PartHandler.html" title="class Poco::Net::PartHandler">PartHandler</a>. </p>
</div>
<h3><a name="13694">getContentType</a></h3>
<p class="decl">const std::string &amp; getContentType() const;</p>
<div class="description">
<p>Returns the content type for the message. </p>
</div>
<h3><a name="13697">getDate</a></h3>
<p class="decl"><a href="Poco.Timestamp.html" title="class Poco::Timestamp">Poco::Timestamp</a> getDate() const;</p>
<div class="description">
<p>Returns the value of the Date header. </p>
</div>
<h3><a name="13685">getSender</a></h3>
<p class="decl">const std::string &amp; getSender() const;</p>
<div class="description">
<p>Returns the sender of the message (taken from the From header field). </p>
</div>
<h3><a name="13682">getSubject</a></h3>
<p class="decl">const std::string &amp; getSubject() const;</p>
<div class="description">
<p>Returns the subject of the message. </p>
</div>
<h3><a name="13698">isMultipart</a></h3>
<p class="decl">bool isMultipart() const;</p>
<div class="description">
<p>Returns true if and only if the message is a multipart message. </p>
</div>
<h3><a name="13711">read</a></h3>
<p class="decl">void read(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartHandler.html" title="class Poco::Net::PartHandler">PartHandler</a> &amp; handler<br />);</p>
<div class="description">
<p>Reads the <a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a> from the given input stream. </p>
<p>If the message has multiple parts, the parts are reported to the <a href="Poco.Net.PartHandler.html" title="class Poco::Net::PartHandler">PartHandler</a>. If the message is not a multi-part message, the content is stored in a string available by calling <a href="Poco.Net.MailMessage.html#13689" title="Poco::Net::MailMessage::getContent()">getContent</a>(). </p>
</div>
<h3><a name="13714">read</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void read(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr<br />);</p>
<div class="description">
<p>Reads the <a href="Poco.Net.MailMessage.html" title="class Poco::Net::MailMessage">MailMessage</a> from the given input stream. </p>
<p>The raw message (including all MIME parts) is stored in a string and available by calling <a href="Poco.Net.MailMessage.html#13689" title="Poco::Net::MailMessage::getContent()">getContent</a>(). </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.MessageHeader.html#13919" title="Poco::Net::MessageHeader::read()">Poco::Net::MessageHeader::read()</a></p></div>
<h3><a name="13679">recipients</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const <a href="Poco.Net.MailMessage.html#13666" title="Poco::Net::MailMessage::Recipients">Recipients</a> &amp; recipients() const;</p>
<div class="description">
<p>Returns the recipients of the message. </p>
</div>
<h3><a name="13686">setContent</a></h3>
<p class="decl">void setContent(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; content,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13670" title="enum  Poco::Net::MailMessage::ContentTransferEncoding">ContentTransferEncoding</a> encoding = ENCODING_QUOTED_PRINTABLE<br />);</p>
<div class="description">
<p>Sets the content of the mail message. </p>
<p>If the content transfer encoding is <a href="Poco.Net.MailMessage.html#13671" title="Poco::Net::MailMessage::ENCODING_7BIT">ENCODING_7BIT</a> or <a href="Poco.Net.MailMessage.html#13672" title="Poco::Net::MailMessage::ENCODING_8BIT">ENCODING_8BIT</a>, the content string must be formatted according to the rules of an internet email message. </p>
<p>The message will be sent as a single-part message. </p>
</div>
<h3><a name="13690">setContentType</a></h3>
<p class="decl">void setContentType(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; mediaType<br />);</p>
<div class="description">
<p>Sets the content type for the message. </p>
</div>
<h3><a name="13692">setContentType</a></h3>
<p class="decl">void setContentType(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MediaType.html" title="class Poco::Net::MediaType">MediaType</a> &amp; mediaType<br />);</p>
<div class="description">
<p>Sets the content type for the message. </p>
</div>
<h3><a name="13695">setDate</a></h3>
<p class="decl">void setDate(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timestamp.html" title="class Poco::Timestamp">Poco::Timestamp</a> &amp; dateTime<br />);</p>
<div class="description">
<p>Sets the Date header to the given date/time value. </p>
</div>
<h3><a name="13683">setSender</a></h3>
<p class="decl">void setSender(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; sender<br />);</p>
<div class="description">
<p>Sets the sender of the message (which ends up in the From header field). </p>
<p>The sender must either be a valid email address, or a real name followed by an email address enclosed in &lt; and &gt;. </p>
<p>The sender must not contain any non-ASCII characters. To include non-ASCII characters in the sender, use <a href="http://www.ietf.org/rfc/rfc2047.txt" target="_blank">RFC 2047</a> word encoding (see <a href="Poco.Net.MailMessage.html#13718" title="Poco::Net::MailMessage::encodeWord()">encodeWord</a>()). </p>
</div>
<h3><a name="13680">setSubject</a></h3>
<p class="decl">void setSubject(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; subject<br />);</p>
<div class="description">
<p>Sets the subject of the message. </p>
<p>The subject must not contain any non-ASCII characters. To include non-ASCII characters in the subject, use <a href="http://www.ietf.org/rfc/rfc2047.txt" target="_blank">RFC 2047</a> word encoding (see <a href="Poco.Net.MailMessage.html#13718" title="Poco::Net::MailMessage::encodeWord()">encodeWord</a>()). </p>
</div>
<h3><a name="13716">write</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void write(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::ostream &amp; ostr<br />) const;</p>
<div class="description">
<p>Writes the mail message to the given output stream. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.MessageHeader.html#13917" title="Poco::Net::MessageHeader::write()">Poco::Net::MessageHeader::write()</a></p></div>
<h3><a name="13760">appendRecipient</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static void appendRecipient(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MailRecipient.html" title="class Poco::Net::MailRecipient">MailRecipient</a> &amp; recipient,<br />&nbsp;&nbsp;&nbsp;&nbsp;std::string &amp; str<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13756">contentTransferEncodingToString</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string &amp; contentTransferEncodingToString(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13670" title="enum  Poco::Net::MailMessage::ContentTransferEncoding">ContentTransferEncoding</a> encoding<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13752">handlePart</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void handlePart(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a> &amp; header,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartHandler.html" title="class Poco::Net::PartHandler">PartHandler</a> &amp; handler<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13758">lineLength</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static int lineLength(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; str<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13727">makeMultipart</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void makeMultipart();</p>
<div class="description">
<p></p>
</div>
<h3><a name="13743">readHeader</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void readHeader(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13745">readMultipart</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void readMultipart(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartHandler.html" title="class Poco::Net::PartHandler">PartHandler</a> &amp; handler<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13748">readPart</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void readPart(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a> &amp; header,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.PartHandler.html" title="class Poco::Net::PartHandler">PartHandler</a> &amp; handler<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="13741">setRecipientHeaders</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setRecipientHeaders(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a> &amp; headers<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13737">writeEncoded</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void writeEncoded(<br />&nbsp;&nbsp;&nbsp;&nbsp;std::istream &amp; istr,<br />&nbsp;&nbsp;&nbsp;&nbsp;std::ostream &amp; ostr,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MailMessage.html#13670" title="enum  Poco::Net::MailMessage::ContentTransferEncoding">ContentTransferEncoding</a> encoding<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13728">writeHeader</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void writeHeader(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a> &amp; header,<br />&nbsp;&nbsp;&nbsp;&nbsp;std::ostream &amp; ostr<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13731">writeMultipart</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void writeMultipart(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MessageHeader.html" title="class Poco::Net::MessageHeader">MessageHeader</a> &amp; header,<br />&nbsp;&nbsp;&nbsp;&nbsp;std::ostream &amp; ostr<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13734">writePart</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void writePart(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.MultipartWriter.html" title="class Poco::Net::MultipartWriter">MultipartWriter</a> &amp; writer,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.MailMessage.Part.html" title="struct Poco::Net::MailMessage::Part">Part</a> &amp; part<br />) const;</p>
<div class="description">
<p></p>
</div>
<h2>Variables</h2>
<h3><a name="13775">CTE_7BIT</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13775" title="Poco::Net::MailMessage::CTE_7BIT">CTE_7BIT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13776">CTE_8BIT</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13776" title="Poco::Net::MailMessage::CTE_8BIT">CTE_8BIT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13778">CTE_BASE64</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13778" title="Poco::Net::MailMessage::CTE_BASE64">CTE_BASE64</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13777">CTE_QUOTED_PRINTABLE</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13777" title="Poco::Net::MailMessage::CTE_QUOTED_PRINTABLE">CTE_QUOTED_PRINTABLE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13773">EMPTY_HEADER</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13773" title="Poco::Net::MailMessage::EMPTY_HEADER">EMPTY_HEADER</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13767">HEADER_BCC</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13767" title="Poco::Net::MailMessage::HEADER_BCC">HEADER_BCC</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13766">HEADER_CC</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13766" title="Poco::Net::MailMessage::HEADER_CC">HEADER_CC</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13771">HEADER_CONTENT_DISPOSITION</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13771" title="Poco::Net::MailMessage::HEADER_CONTENT_DISPOSITION">HEADER_CONTENT_DISPOSITION</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13770">HEADER_CONTENT_TRANSFER_ENCODING</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13770" title="Poco::Net::MailMessage::HEADER_CONTENT_TRANSFER_ENCODING">HEADER_CONTENT_TRANSFER_ENCODING</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13769">HEADER_CONTENT_TYPE</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13769" title="Poco::Net::MailMessage::HEADER_CONTENT_TYPE">HEADER_CONTENT_TYPE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13768">HEADER_DATE</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13768" title="Poco::Net::MailMessage::HEADER_DATE">HEADER_DATE</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13764">HEADER_FROM</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13764" title="Poco::Net::MailMessage::HEADER_FROM">HEADER_FROM</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13772">HEADER_MIME_VERSION</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13772" title="Poco::Net::MailMessage::HEADER_MIME_VERSION">HEADER_MIME_VERSION</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13763">HEADER_SUBJECT</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13763" title="Poco::Net::MailMessage::HEADER_SUBJECT">HEADER_SUBJECT</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13765">HEADER_TO</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13765" title="Poco::Net::MailMessage::HEADER_TO">HEADER_TO</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="13774">TEXT_PLAIN</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const std::string <a href="Poco.Net.MailMessage.html#13774" title="Poco::Net::MailMessage::TEXT_PLAIN">TEXT_PLAIN</a>;</p>
<div class="description">
<p></p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>