|
VMime
|
#include <messageBuilder.hpp>
A helper for building MIME messages.
| messageBuilder | ( | ) |
References constructTextPart(), vmime::mediaTypes::TEXT, and vmime::mediaTypes::TEXT_PLAIN.
| ~messageBuilder | ( | ) |
| void appendAttachment | ( | shared_ptr< attachment > | attach | ) |
| void attach | ( | shared_ptr< attachment > | attach | ) |
Attach a new object to the message.
| attach | new attachment |
References appendAttachment(), and attach().
Referenced by appendAttachment(), and attach().
| shared_ptr< message > construct | ( | ) | const |
Construct a new message based on the information specified in this object.
References vmime::clone(), bodyPart::getBody(), bodyPart::getHeader(), vmime::mediaTypes::MULTIPART, vmime::mediaTypes::MULTIPART_ALTERNATIVE, vmime::mediaTypes::MULTIPART_MIXED, datetime::now(), and vmime::SUPPORTED_MIME_VERSION.
| void constructTextPart | ( | const mediaType & | type | ) |
Change the type of the text part and construct a new part.
| type | media type of the text part |
References textPartFactory::create(), and textPartFactory::getInstance().
Referenced by messageBuilder().
| shared_ptr< attachment > getAttachmentAt | ( | const size_t | pos | ) |
Return the attachment at the specified position.
| pos | position of the attachment |
| const shared_ptr< const attachment > getAttachmentAt | ( | const size_t | pos | ) | const |
Return the attachment at the specified position.
| pos | position of the attachment |
| size_t getAttachmentCount | ( | ) | const |
Return the number of attachments in the message.
| const std::vector< shared_ptr< attachment > > getAttachmentList | ( | ) |
Return the list of attachments.
| const std::vector< shared_ptr< const attachment > > getAttachmentList | ( | ) | const |
Return the list of attachments.
| addressList & getBlindCopyRecipients | ( | ) |
Return the blind-copy recipients of the message (Bcc:).
| const addressList & getBlindCopyRecipients | ( | ) | const |
Return the blind-copy recipients of the message (Bcc:).
| addressList & getCopyRecipients | ( | ) |
Return the copy recipients of the message (Cc:).
| const addressList & getCopyRecipients | ( | ) | const |
Return the copy recipients of the message (Cc:).
| const mailbox & getExpeditor | ( | ) | const |
Return the expeditor of the message (From:).
| addressList & getRecipients | ( | ) |
Return the recipients of the message (To:).
return recipients of the message
| const addressList & getRecipients | ( | ) | const |
Return the recipients of the message (To:).
return recipients of the message
| const text & getSubject | ( | ) | const |
Return the subject of the message.
| shared_ptr< textPart > getTextPart | ( | ) |
Return the text part of the message.
| void removeAttachment | ( | const size_t | pos | ) |
Remove the attachment at the specified position.
| pos | position of the attachment to remove |
| void setBlindCopyRecipients | ( | const addressList & | bcc | ) |
Set the blind-copy recipients of the message (Bcc:).
| bcc | list of blind-copy recipients |
| void setCopyRecipients | ( | const addressList & | cc | ) |
Set the copy recipients of the message (Cc:).
| cc | list of copy recipients |
| void setExpeditor | ( | const mailbox & | expeditor | ) |
Set the expeditor of the message (From:).
| expeditor | expeditor of the message |
| void setRecipients | ( | const addressList & | recipients | ) |
Set the recipients of the message (To:).
| recipients | list of recipients |
| void setSubject | ( | const text & | subject | ) |
Set the subject of the message.
| subject | message subject |