Sends the message using the specified SMTP server.
Namespace:
Rebex.Net
Assembly:
Rebex.Smtp (in Rebex.Smtp.dll)
Syntax
Visual Basic |
---|
Public Shared Sub Send ( _ message As MailMessage, _ serverName As String _ ) |
C# |
---|
public static void Send( MailMessage message, string serverName ) |
Parameters
- message
- Type: Rebex.Mail..::..MailMessage
Message to be sent.
- serverName
- Type: System..::..String
SMTP server hostname or IP address.