SmtpClient.Send

Send(string, string, string, string)

Creates and sends the specified message.

public void Send(string from, string recipients, string subject, string body)
ParameterTypeDescription
fromStringA String that contains the address of message sender.
recipientsStringA String that contains the address of recipients.
subjectStringA subject of message.
bodyStringA body of message.

See Also


Send(MailMessage)

Send the specified message.

public void Send(MailMessage message)
ParameterTypeDescription
messageMailMessageThe MailMessage that represents an email-message.

See Also


Send(params MailMessage[])

Send the specified message.

public void Send(params MailMessage[] messages)
ParameterTypeDescription
messagesMailMessage[]The array of MailMessage that represents an email-messages to send.

See Also


Send(MailMessageCollection)

Send the specified message collection.

public void Send(MailMessageCollection messages)
ParameterTypeDescription
messagesMailMessageCollectionThe collection of messages.

See Also


Send(IEnumerable<MailMessage>)

Send the specified messages.

public void Send(IEnumerable<MailMessage> messages)
ParameterTypeDescription
messagesIEnumerable`1The IEnumerator that supports a message iteration.

See Also


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)
ParameterTypeDescription
connectionIConnectionConnection to a server
fromStringA String that contains the address of message sender.
recipientsStringA String that contains the address of recipients.
subjectStringA subject of message.
bodyStringA body of message.

See Also


Send(IConnection, MailMessage)

Send the specified message.

public void Send(IConnection connection, MailMessage message)
ParameterTypeDescription
connectionIConnectionConnection to a server
messageMailMessageThe MailMessage that represents an email-message.

See Also


Send(IConnection, params MailMessage[])

Send the specified message.

public void Send(IConnection connection, params MailMessage[] messages)
ParameterTypeDescription
connectionIConnectionConnection to a server
messagesMailMessage[]The array of MailMessage that represents an email-messages to send.

See Also


Send(IConnection, MailMessageCollection)

Send the specified message collection.

public void Send(IConnection connection, MailMessageCollection messages)
ParameterTypeDescription
connectionIConnectionConnection to a server
messagesMailMessageCollectionThe collection of messages.

See Also


Send(IConnection, IEnumerable<MailMessage>)

Send the specified messages.

public void Send(IConnection connection, IEnumerable<MailMessage> messages)
ParameterTypeDescription
connectionIConnectionConnection to a server
messagesIEnumerable`1The IEnumerator that supports a message iteration.

See Also