IMailServices Interface | 
Namespace: OBCOM.NetSwitchLib.Servers
| Name | Description | |
|---|---|---|
| SendMail(String, String) | 
            Sends a mail message using the "default" SMTP mail session.
              | |
| SendMail(String, String, String) | 
            Sends a mail message using the specified SMTP mail session.
              | 
The following table describes the properties of a IMailServices:
| Property | Description | Type | Default | 
|---|---|---|---|
| mail.«name».connect.timeout | Maximum time to wait for a connection (milliseconds) | int | infinite | 
| mail.«name».host | Host name or address of the SMTP mail server | string | required | 
| mail.«name».io.timeout | Maximum time to wait for an I/O operation (milliseconds) | int | infinite | 
| mail.«name».password | User password to use when connecting to mail servers | string | required | 
| mail.«name».port | Port number of the SMTP mail server | int | 25 | 
| mail.«name».recipient | Recipient mail address where messages are sent | string | required | 
| mail.«name».socketFactory.class | Name of a class that extends javax.net.SocketFactory | string | none | 
| mail.«name».socketFactory.fallback | Use java.net.Socket if specified socket factory creation fails | bool | true | 
| mail.«name».socketFactory.port | Port to connect to when using the specified socket factory | int | default | 
| mail.«name».starttls.enable | If true, enables the use of the STARTTLS command | bool | false | 
| mail.«name».use.auth | If true, attempt to authenticate using the AUTH command | bool | false | 
| mail.«name».use.ssl | If true, use SMTPS protocol (SMTP over SSL) | bool | false | 
| mail.«name».user | User name to use when connecting to mail servers | string | required |