Sends a mail message constructed from the specified parameters using the specified SMTP server.
Namespace:
Rebex.Net
Assembly:
Rebex.Smtp (in Rebex.Smtp.dll)
Syntax
Visual Basic |
---|
Public Shared Sub Send ( _ from As String, _ to As String, _ subject As String, _ body As String, _ configuration As SmtpConfiguration _ ) |
C# |
---|
public static void Send( string from, string to, string subject, string body, SmtpConfiguration configuration ) |
Parameters
- from
- Type: System..::..String
Message sender.
- to
- Type: System..::..String
Comma-separated list of message recipients.
- subject
- Type: System..::..String
The subject of the message.
- body
- Type: System..::..String
The text body of the message.
- configuration
- Type: Rebex.Net..::..SmtpConfiguration
The SmtpConfiguration class.