|
VMime
|
#include <messageBuilder.hpp>
A helper for building MIME messages.
| messageBuilder | ( | ) |
| ~messageBuilder | ( | ) |
| void appendAttachment | ( | shared_ptr< attachment > | attach | ) |
Attach a new object to the message.
| attach | new attachment |
References messageBuilder::attach().
Referenced by messageBuilder::attach().
| void attach | ( | shared_ptr< attachment > | attach | ) |
Attach a new object to the message.
| attach | new attachment |
References messageBuilder::appendAttachment(), and messageBuilder::attach().
Referenced by messageBuilder::appendAttachment(), and messageBuilder::attach().
| shared_ptr< message > construct | ( | ) | const |
Construct a new message based on the information specified in this object.
References vmime::clone(), vmime::dynamicCast(), addressList::getAddressAt(), bodyPart::getBody(), addressList::isEmpty(), mailbox::isEmpty(), vmime::mediaTypes::MULTIPART, vmime::mediaTypes::MULTIPART_ALTERNATIVE, vmime::mediaTypes::MULTIPART_MIXED, datetime::now(), and vmime::SUPPORTED_MIME_VERSION.
Change the type of the text part and construct a new part.
| type | media type of the text part |
References textPartFactory::create(), vmime::dynamicCast(), and textPartFactory::getInstance().
Referenced by messageBuilder::messageBuilder().
| shared_ptr< attachment > getAttachmentAt | ( | const size_t | pos | ) |
Return the attachment at the specified position.
| pos | position of the attachment |
References vmime::dynamicCast().
| const shared_ptr< const attachment > getAttachmentAt | ( | const size_t | pos | ) | const |
Return the attachment at the specified position.
| pos | position of the attachment |
References vmime::dynamicCast().
| 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 |
| 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:).
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
| shared_ptr< textPart > getTextPart | ( | ) |
Return the text part of the message.
Remove the attachment at the specified position.
| pos | position of the attachment to remove |
References vmime::dynamicCast().
| void setBlindCopyRecipients | ( | const addressList & | bcc | ) |
Set the blind-copy recipients of the message (Bcc:).
| bcc | list of blind-copy recipients |
References vmime::dynamicCast().
| void setCopyRecipients | ( | const addressList & | cc | ) |
Set the copy recipients of the message (Cc:).
| cc | list of copy recipients |
References vmime::dynamicCast().
Set the expeditor of the message (From:).
| expeditor | expeditor of the message |
References vmime::dynamicCast().
| void setRecipients | ( | const addressList & | recipients | ) |
Set the recipients of the message (To:).
| recipients | list of recipients |
References vmime::dynamicCast().
Set the subject of the message.
| subject | message subject |