implements the MultiPartRelatedMessage class, a specialization of MultiPartMessage
More...
implements the MultiPartRelatedMessage class, a specialization of MultiPartMessage
◆ addPart()
Mime::MultiPartRelatedMessage::addPart |
( |
data |
mime_data, |
|
|
string |
id, |
|
|
string |
content_type, |
|
|
*hash |
hdr |
|
) |
| |
adds a message part to the end of the list
- Parameters
-
mime_data | the data for the part |
id | the multipart/related ID for the part |
content_type | the content_type for the part |
hdr | an optional hash of headers for the part |
- Exceptions
-
MULTIPART-RELATED-ERROR | if the id parameter is empty, this exception is thrown |
◆ constructor()
creates the object
- Parameters
-
boundary | the boundary to use between parts |
◆ getMsgAndHeaders()
returns a hash of the message
- Returns
- a hash of the message with the following keys:
hdr:
a hash of header information
body:
a binary object of serialized message parts
Implements Mime::MultiPartMessage.
◆ splicePart()
Mime::MultiPartRelatedMessage::splicePart |
( |
data |
mime_data, |
|
|
string |
id, |
|
|
string |
content_type, |
|
|
*hash< auto > |
hdr |
|
) |
| |
adds a message part to the start of the list
- Parameters
-
mime_data | the data for the part |
id | the multipart/related ID for the part |
content_type | the content_type for the part |
hdr | an optional hash of headers for the part |
- Exceptions
-
MULTIPART-RELATED-ERROR | if the id parameter is empty, this exception is thrown |