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

IAsyncSmtpClient::SendAsync method parameter set. More...

Inherits Object.

Public Member Functions

System::SharedPtr< MailMessageCollectionget_Messages () const
 
System::SharedPtr< IConnectionget_Connection () const
 
System::SharedPtr< SmtpSendSetConnection (System::SharedPtr< IConnection > connection)
 Connection to a server (optional). More...
 
System::SharedPtr< SmtpSendAddMessage (System::String from, System::String recipients, System::String subject, System::String body)
 Add a message to send. More...
 
System::SharedPtr< SmtpSendAddMessage (System::SharedPtr< MailMessage > message)
 Add a message to send. More...
 
System::SharedPtr< SmtpSendAddMessages (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>> messages)
 Add messages to send. More...
 

Static Public Member Functions

static System::SharedPtr< SmtpSendCreate ()
 Create SmtpSend. More...
 

Protected Member Functions

virtual ~SmtpSend ()
 

Detailed Description

IAsyncSmtpClient::SendAsync method parameter set.

Constructor & Destructor Documentation

◆ ~SmtpSend()

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

Member Function Documentation

◆ AddMessage() [1/2]

System::SharedPtr<SmtpSend> Aspose::Email::Clients::Smtp::Models::SmtpSend::AddMessage ( System::SharedPtr< MailMessage message)

Add a message to send.

Parameters
messageThe message to send.
Returns

◆ AddMessage() [2/2]

System::SharedPtr<SmtpSend> Aspose::Email::Clients::Smtp::Models::SmtpSend::AddMessage ( System::String  from,
System::String  recipients,
System::String  subject,
System::String  body 
)

Add a message to send.

Parameters
fromA String that contains the address of message sender.
recipientsA String that contains the address of recipients.
subjectA subject of message.
bodyA body of message.

◆ AddMessages()

System::SharedPtr<SmtpSend> Aspose::Email::Clients::Smtp::Models::SmtpSend::AddMessages ( System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MailMessage >>>  messages)

Add messages to send.

Parameters
messagesThe messages to send.
Returns

◆ Create()

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

Create SmtpSend.

Returns

◆ get_Connection()

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

◆ get_Messages()

System::SharedPtr<MailMessageCollection> Aspose::Email::Clients::Smtp::Models::SmtpSend::get_Messages ( ) const

◆ SetConnection()

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

Connection to a server (optional).