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 MimeMessage, _ pickupDirectory As String _ ) |
C# |
---|
public static void Send( MailServerType serverType, MimeMessage message, string pickupDirectory ) |
Parameters
- serverType
- Type: Rebex.Mail..::..MailServerType
Server type.
- message
- Type: Rebex.Mime..::..MimeMessage
Message to be sent.
- pickupDirectory
- Type: System..::..String
The pickup directory to submit the message to (or null to detect automatically on Windows platforms).
Remarks
Microsoft SMTP service must be running at the computer where the code runs in order for this method to work.