SmtpClient.Send
Contents
[
Hide
]Send(string, string, string, string)
Creates and sends the specified message.
public void Send(string from, string recipients, string subject, string body)
Parameter | Type | Description |
---|---|---|
from | String | A String that contains the address of message sender. |
recipients | String | A String that contains the address of recipients. |
subject | String | A subject of message. |
body | String | A body of message. |
See Also
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(MailMessage)
Send the specified message.
public void Send(MailMessage message)
Parameter | Type | Description |
---|---|---|
message | MailMessage | The MailMessage that represents an email-message. |
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(params MailMessage[])
Send the specified message.
public void Send(params MailMessage[] messages)
Parameter | Type | Description |
---|---|---|
messages | MailMessage[] | The array of MailMessage that represents an email-messages to send. |
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(MailMessageCollection)
Send the specified message collection.
public void Send(MailMessageCollection messages)
Parameter | Type | Description |
---|---|---|
messages | MailMessageCollection | The collection of messages. |
See Also
- class MailMessageCollection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(IEnumerable<MailMessage>)
Send the specified messages.
public void Send(IEnumerable<MailMessage> messages)
Parameter | Type | Description |
---|---|---|
messages | IEnumerable`1 | The IEnumerator that supports a message iteration. |
See Also
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(IConnection, string, string, string, string)
Creates and sends the specified message.
public void Send(IConnection connection, string from, string recipients, string subject,
string body)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
from | String | A String that contains the address of message sender. |
recipients | String | A String that contains the address of recipients. |
subject | String | A subject of message. |
body | String | A body of message. |
See Also
- interface IConnection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(IConnection, MailMessage)
Send the specified message.
public void Send(IConnection connection, MailMessage message)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
message | MailMessage | The MailMessage that represents an email-message. |
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(IConnection, params MailMessage[])
Send the specified message.
public void Send(IConnection connection, params MailMessage[] messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | MailMessage[] | The array of MailMessage that represents an email-messages to send. |
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(IConnection, MailMessageCollection)
Send the specified message collection.
public void Send(IConnection connection, MailMessageCollection messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | MailMessageCollection | The collection of messages. |
See Also
- interface IConnection
- class MailMessageCollection
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email
Send(IConnection, IEnumerable<MailMessage>)
Send the specified messages.
public void Send(IConnection connection, IEnumerable<MailMessage> messages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
messages | IEnumerable`1 | The IEnumerator that supports a message iteration. |
See Also
- interface IConnection
- class MailMessage
- class SmtpClient
- namespace Aspose.Email.Clients.Smtp
- assembly Aspose.Email