Aspose::Email::Clients::Smtp::Models::SmtpForward Class Reference

The IAsyncSmtpClient::ForwardAsync arguments. More...

Inherits Object.

Public Member Functions

System::SharedPtr< IConnectionget_Connection () const
 
System::SharedPtr< System::IO::Stream > get_Stream () const
 
System::SharedPtr< MailMessageget_Message () const
 
bool get_IsMessageSet ()
 
System::String get_Sender () const
 
System::SharedPtr< MailAddressCollectionget_Recipients () const
 
System::SharedPtr< SmtpForwardSetConnection (System::SharedPtr< IConnection > connection)
 Connection to a server (optional). More...
 
System::SharedPtr< SmtpForwardSetMessage (System::SharedPtr< MailMessage > message)
 The message to forward. More...
 
System::SharedPtr< SmtpForwardSetMessage (System::SharedPtr< System::IO::Stream > message)
 The message to forward. More...
 
System::SharedPtr< SmtpForwardSetSender (System::String sender)
 Sender of the forwarded message. More...
 
System::SharedPtr< SmtpForwardAddRecipient (System::String recipient)
 Add recipient of the forwarded message. More...
 
System::SharedPtr< SmtpForwardAddRecipient (System::SharedPtr< MailAddress > recipient)
 Add recipient of the forwarded message. More...
 
System::SharedPtr< SmtpForwardAddRecipients (System::SharedPtr< MailAddressCollection > recipients)
 Add recipients of the forwarded message. More...
 
System::SharedPtr< SmtpForwardAddRecipients (System::SharedPtr< System::Collections::Generic::IEnumerable< System::String >> recipients)
 Add recipients of the forwarded message. More...
 

Static Public Member Functions

static System::SharedPtr< SmtpForwardCreate ()
 Creates the SmtpForward instacne. More...
 

Protected Member Functions

virtual ~SmtpForward ()
 

Detailed Description

Constructor & Destructor Documentation

◆ ~SmtpForward()

virtual Aspose::Email::Clients::Smtp::Models::SmtpForward::~SmtpForward ( )
protectedvirtual

Member Function Documentation

◆ AddRecipient() [1/2]

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::AddRecipient ( System::SharedPtr< MailAddress recipient)

Add recipient of the forwarded message.

◆ AddRecipient() [2/2]

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::AddRecipient ( System::String  recipient)

Add recipient of the forwarded message.

◆ AddRecipients() [1/2]

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::AddRecipients ( System::SharedPtr< MailAddressCollection recipients)

Add recipients of the forwarded message.

◆ AddRecipients() [2/2]

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::AddRecipients ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::String >>  recipients)

Add recipients of the forwarded message.

◆ Create()

static System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::Create ( )
static

Creates the SmtpForward instacne.

◆ get_Connection()

System::SharedPtr<IConnection> Aspose::Email::Clients::Smtp::Models::SmtpForward::get_Connection ( ) const

◆ get_IsMessageSet()

bool Aspose::Email::Clients::Smtp::Models::SmtpForward::get_IsMessageSet ( )

◆ get_Message()

System::SharedPtr<MailMessage> Aspose::Email::Clients::Smtp::Models::SmtpForward::get_Message ( ) const

◆ get_Recipients()

System::SharedPtr<MailAddressCollection> Aspose::Email::Clients::Smtp::Models::SmtpForward::get_Recipients ( ) const

◆ get_Sender()

System::String Aspose::Email::Clients::Smtp::Models::SmtpForward::get_Sender ( ) const

◆ get_Stream()

System::SharedPtr<System::IO::Stream> Aspose::Email::Clients::Smtp::Models::SmtpForward::get_Stream ( ) const

◆ SetConnection()

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::SetConnection ( System::SharedPtr< IConnection connection)

Connection to a server (optional).

◆ SetMessage() [1/2]

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::SetMessage ( System::SharedPtr< MailMessage message)

The message to forward.

◆ SetMessage() [2/2]

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::SetMessage ( System::SharedPtr< System::IO::Stream >  message)

The message to forward.

◆ SetSender()

System::SharedPtr<SmtpForward> Aspose::Email::Clients::Smtp::Models::SmtpForward::SetSender ( System::String  sender)

Sender of the forwarded message.