Class OutgoingMailSession
Class to deal with sessions for outgoing (i.e. SMTP) mail servers.
Instantiate this class with BeginSend().
Implements
Inherited Members
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public sealed class OutgoingMailSession : MailSession<ISoOutgoingMailInterface>, IDisposable
Methods
SendEMail(MailItem)
Send the provided e-mail to the server
Declaration
public MailItem SendEMail(MailItem email)
Parameters
Type | Name | Description |
---|---|---|
MailItem | E-mail to send |
Returns
Type | Description |
---|---|
MailItem | The sent e-mail updated with messageid etc. |
ServerLogin(String, String, String)
Log on to the mail server
Declaration
protected override ISoOutgoingMailInterface ServerLogin(string server, string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
String | server | Name of mail server with optional port. |
String | userName | User name used to authenticate to the mail server |
String | password | Password used to authenticate to the mail server |
Returns
Type | Description |
---|---|
ISoOutgoingMailInterface | Instance of interface to the mail plugin. |
Overrides
SuperOffice.CRM.Mail.MailSession<SuperOffice.CRM.Mail.ISoOutgoingMailInterface>.ServerLogin(System.String, System.String, System.String)
ServerLogin(String, String, String, Boolean)
Log on to the mail server
Declaration
protected override ISoOutgoingMailInterface ServerLogin(string server, string userName, string password, bool useSSL)
Parameters
Type | Name | Description |
---|---|---|
String | server | Name of mail server with optional port. |
String | userName | User name used to authenticate to the mail server |
String | password | Password used to authenticate to the mail server |
Boolean | useSSL | Use SSL |
Returns
Type | Description |
---|---|
ISoOutgoingMailInterface | Instance of interface to the mail plugin. |
Overrides
SuperOffice.CRM.Mail.MailSession<SuperOffice.CRM.Mail.ISoOutgoingMailInterface>.ServerLogin(System.String, System.String, System.String, System.Boolean)
ServerLogout()
Log out from the mail server.
Declaration
protected override void ServerLogout()
Overrides
SuperOffice.CRM.Mail.MailSession<SuperOffice.CRM.Mail.ISoOutgoingMailInterface>.ServerLogout()
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)