Sends the message by submitting it into the MS IIS SMTP service's pickup directory.

Namespace:  Rebex.Mail
Assembly:  Rebex.Mail (in Rebex.Mail.dll)

Syntax

Visual Basic
Public Shared Sub Send ( _
	serverType As MailServerType, _
	message As MailMessage, _
	pickupDirectory As String _
)
C#
public static void Send(
	MailServerType serverType,
	MailMessage message,
	string pickupDirectory
)

Parameters

serverType
Type: Rebex.Mail..::..MailServerType
Server type.
message
Type: Rebex.Mail..::..MailMessage
Message to be sent.
pickupDirectory
Type: System..::..String
The pickup directory to submit the message to, or null to detect automatically.

Remarks

Microsoft SMTP service must be running at the computer where the code runs in order for this method to work.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also