Aspose::Email::Tools::ResponseMessageBuilder Class Referenceabstract

Provides creation and formatting the forwarding and replying messages. More...

Inherits Object.

Inherited by Aspose::Email::Tools::ForwardMessageBuilder, and Aspose::Email::Tools::ReplyMessageBuilder.

Public Member Functions

OriginalMessageAdditionMode get_AdditionMode () const
 Gets the format of response message. More...
 
void set_AdditionMode (OriginalMessageAdditionMode value)
 Sets the format of response message. More...
 
System::SharedPtr< MailAddressget_Sender () const
 Gets the addres from which the response message will be sent. More...
 
void set_Sender (System::SharedPtr< MailAddress > value)
 Sets the addres from which the response message will be sent. More...
 
System::String get_ResponseText () const
 Gets the body of response message. More...
 
void set_ResponseText (System::String value)
 Sets the body of response message. More...
 
virtual System::SharedPtr< MailMessageBuildResponse (System::SharedPtr< MailMessage > msg)=0
 Builds the forwarding and replying messages. More...
 
virtual System::SharedPtr< Aspose::Email::Mapi::MapiMessageBuildResponse (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > msg)=0
 Builds the forwarding and replying messages. More...
 
void SetContent (System::SharedPtr< MailMessage > src, System::SharedPtr< MailMessage > dst)
 Sets the content. More...
 
void SetContent (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > src, System::SharedPtr< Aspose::Email::Mapi::MapiMessage > dst)
 Sets the content. More...
 
 ResponseMessageBuilder ()
 

Detailed Description

Provides creation and formatting the forwarding and replying messages.

Constructor & Destructor Documentation

◆ ResponseMessageBuilder()

Aspose::Email::Tools::ResponseMessageBuilder::ResponseMessageBuilder ( )

Member Function Documentation

◆ BuildResponse() [1/2]

virtual System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Tools::ResponseMessageBuilder::BuildResponse ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage msg)
pure virtual

Builds the forwarding and replying messages.

Parameters
msgOriginal message Aspose::Email::Mapi::MapiMessage.
Returns
Resultant message Aspose::Email::Mapi::MapiMessage.

Implemented in Aspose::Email::Tools::ForwardMessageBuilder.

◆ BuildResponse() [2/2]

virtual System::SharedPtr<MailMessage> Aspose::Email::Tools::ResponseMessageBuilder::BuildResponse ( System::SharedPtr< MailMessage msg)
pure virtual

Builds the forwarding and replying messages.

Parameters
msgOriginal message MailMessage.
Returns
Resultant message MailMessage.

Implemented in Aspose::Email::Tools::ReplyMessageBuilder, and Aspose::Email::Tools::ForwardMessageBuilder.

◆ get_AdditionMode()

OriginalMessageAdditionMode Aspose::Email::Tools::ResponseMessageBuilder::get_AdditionMode ( ) const

Gets the format of response message.

◆ get_ResponseText()

System::String Aspose::Email::Tools::ResponseMessageBuilder::get_ResponseText ( ) const

Gets the body of response message.

Can contain html tags or rtf keywords if type of body of original message is HTML or RTF respectively.

◆ get_Sender()

System::SharedPtr<MailAddress> Aspose::Email::Tools::ResponseMessageBuilder::get_Sender ( ) const

Gets the addres from which the response message will be sent.

◆ set_AdditionMode()

void Aspose::Email::Tools::ResponseMessageBuilder::set_AdditionMode ( OriginalMessageAdditionMode  value)

Sets the format of response message.

◆ set_ResponseText()

void Aspose::Email::Tools::ResponseMessageBuilder::set_ResponseText ( System::String  value)

Sets the body of response message.

Can contain html tags or rtf keywords if type of body of original message is HTML or RTF respectively.

◆ set_Sender()

void Aspose::Email::Tools::ResponseMessageBuilder::set_Sender ( System::SharedPtr< MailAddress value)

Sets the addres from which the response message will be sent.

◆ SetContent() [1/2]

void Aspose::Email::Tools::ResponseMessageBuilder::SetContent ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage src,
System::SharedPtr< Aspose::Email::Mapi::MapiMessage dst 
)

Sets the content.

Parameters
srcThe source message.
dstThe destination message.

◆ SetContent() [2/2]

void Aspose::Email::Tools::ResponseMessageBuilder::SetContent ( System::SharedPtr< MailMessage src,
System::SharedPtr< MailMessage dst 
)

Sets the content.

Parameters
srcThe source message.
dstThe destination message.