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 _ ) |
C# |
---|
public static void Send( MailServerType serverType, MailMessage message ) |
Parameters
- serverType
- Type: Rebex.Mail..::..MailServerType
Server type.
- message
- Type: Rebex.Mail..::..MailMessage
Message to be sent.
Remarks
Microsoft SMTP service must be running at the computer where the code runs in order for this method to work.