Show / Hide Table of Contents

Class OutgoingMailSession

Class to deal with sessions for outgoing (i.e. SMTP) mail servers.
Instantiate this class with BeginSend().

Inheritance
Object
MailSession<ISoOutgoingMailInterface>
OutgoingMailSession
Implements
IDisposable
Inherited Members
MailSession<ISoOutgoingMailInterface>.Logout()
MailSession<ISoOutgoingMailInterface>.Dispose()
MailSession<ISoOutgoingMailInterface>.Server
MailSession<ISoOutgoingMailInterface>.UserName
MailSession<ISoOutgoingMailInterface>.UseSSL
MailSession<ISoOutgoingMailInterface>.Password
MailSession<ISoOutgoingMailInterface>.MailInterface
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 email

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

System.IDisposable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top