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 MimeMessage, _
	serverName As String, _
	serverPort As Integer _
)
C#
public static void Send(
	MimeMessage message,
	string serverName,
	int serverPort
)

Parameters

message
Type: Rebex.Mime..::..MimeMessage
Message to be sent.
serverName
Type: System..::..String
The server address - either a hostname or a dotted string address.
serverPort
Type: System..::..Int32
The server port (e.g. 25).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also