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, _ serverPort As Integer _ ) |
C# |
---|
public static void Send( MailMessage message, string serverName, int serverPort ) |
Parameters
- message
- Type: Rebex.Mail..::..MailMessage
Message to be sent.
- serverName
- Type: System..::..String
SMTP server hostname or IP address.
- serverPort
- Type: System..::..Int32
SMTP server port.