Aspose::Email::IMessage Class Referenceabstract

Represents a common message interface More...

Inherits Object.

Inherited by Aspose::Email::MailMessage.

Public Member Functions

virtual System::String get_Subject ()=0
 Gets a message subject More...
 
virtual void set_Subject (System::String value)=0
 Sets a message subject More...
 
virtual System::String get_Body ()=0
 Gets a message body More...
 
virtual void set_Body (System::String value)=0
 Sets a message body More...
 
virtual System::String get_HtmlBody ()=0
 Gets a html formatted message body More...
 
virtual void set_HtmlBody (System::String value)=0
 Sets a html formatted message body More...
 
virtual System::DateTime get_Date ()=0
 Gets the date and time when message was delivered More...
 
virtual System::SharedPtr< AttachmentCollectionget_Attachments ()=0
 Gets message attachments More...
 
virtual System::SharedPtr< MailAddressCollectionget_To ()=0
 Gets recipients More...
 
virtual System::SharedPtr< MailAddressCollectionget_CC ()=0
 Gets CC recipients More...
 
virtual System::SharedPtr< MailAddressCollectionget_Bcc ()=0
 Gets BCC recipients More...
 
virtual System::SharedPtr< MailAddressget_From ()=0
 Gets a from address More...
 
virtual void set_From (System::SharedPtr< MailAddress > value)=0
 Sets a from address More...
 
virtual Mapi::BodyContentType get_BodyType ()=0
 Gets the type of the body. More...
 
virtual void Save (System::String fileName)=0
 Saves message to the specified file More...
 
virtual void Save (System::SharedPtr< System::IO::Stream > stream)=0
 Saves message to the specified stream More...
 

Detailed Description

Represents a common message interface

Member Function Documentation

◆ get_Attachments()

virtual System::SharedPtr<AttachmentCollection> Aspose::Email::IMessage::get_Attachments ( )
pure virtual

Gets message attachments

Implemented in Aspose::Email::MailMessage.

◆ get_Bcc()

virtual System::SharedPtr<MailAddressCollection> Aspose::Email::IMessage::get_Bcc ( )
pure virtual

Gets BCC recipients

Implemented in Aspose::Email::MailMessage.

◆ get_Body()

virtual System::String Aspose::Email::IMessage::get_Body ( )
pure virtual

Gets a message body

Implemented in Aspose::Email::MailMessage.

◆ get_BodyType()

virtual Mapi::BodyContentType Aspose::Email::IMessage::get_BodyType ( )
pure virtual

Gets the type of the body.

Implemented in Aspose::Email::MailMessage.

◆ get_CC()

virtual System::SharedPtr<MailAddressCollection> Aspose::Email::IMessage::get_CC ( )
pure virtual

Gets CC recipients

Implemented in Aspose::Email::MailMessage.

◆ get_Date()

virtual System::DateTime Aspose::Email::IMessage::get_Date ( )
pure virtual

Gets the date and time when message was delivered

Implemented in Aspose::Email::MailMessage.

◆ get_From()

virtual System::SharedPtr<MailAddress> Aspose::Email::IMessage::get_From ( )
pure virtual

Gets a from address

Implemented in Aspose::Email::MailMessage.

◆ get_HtmlBody()

virtual System::String Aspose::Email::IMessage::get_HtmlBody ( )
pure virtual

Gets a html formatted message body

Implemented in Aspose::Email::MailMessage.

◆ get_Subject()

virtual System::String Aspose::Email::IMessage::get_Subject ( )
pure virtual

Gets a message subject

Implemented in Aspose::Email::MailMessage.

◆ get_To()

virtual System::SharedPtr<MailAddressCollection> Aspose::Email::IMessage::get_To ( )
pure virtual

Gets recipients

Implemented in Aspose::Email::MailMessage.

◆ Save() [1/2]

virtual void Aspose::Email::IMessage::Save ( System::SharedPtr< System::IO::Stream >  stream)
pure virtual

Saves message to the specified stream

Parameters
streamA stream to save to

Implemented in Aspose::Email::MailMessage.

◆ Save() [2/2]

virtual void Aspose::Email::IMessage::Save ( System::String  fileName)
pure virtual

Saves message to the specified file

Parameters
fileNameA file name

Implemented in Aspose::Email::MailMessage.

◆ set_Body()

virtual void Aspose::Email::IMessage::set_Body ( System::String  value)
pure virtual

Sets a message body

Implemented in Aspose::Email::MailMessage.

◆ set_From()

virtual void Aspose::Email::IMessage::set_From ( System::SharedPtr< MailAddress value)
pure virtual

Sets a from address

Implemented in Aspose::Email::MailMessage.

◆ set_HtmlBody()

virtual void Aspose::Email::IMessage::set_HtmlBody ( System::String  value)
pure virtual

Sets a html formatted message body

Implemented in Aspose::Email::MailMessage.

◆ set_Subject()

virtual void Aspose::Email::IMessage::set_Subject ( System::String  value)
pure virtual

Sets a message subject

Implemented in Aspose::Email::MailMessage.