Show / Hide Table of Contents

Class EMailAccount

Properties for an email account

Carrier object for EMailAccount. Services for the EMailAccount Carrier is available from the EMail Agent.
Inheritance
object
EMailAccount
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class EMailAccount : Carrier
Examples

Get EMailAccount 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new EMailAgent();
   var eMailAccount = agent.GetEMailAccount( 123 );
}

Constructors

EMailAccount()

Default constructor

Declaration
public EMailAccount()
See Also
IEMailAgent

Properties

AccountStatus

The account status (Disabled or...) Readonly field

Declaration
[DataMember]
public virtual short AccountStatus { get; set; }
Property Value
Type Description
short
See Also
IEMailAgent

AssociateId

Id of the associate who owns this account

Declaration
[DataMember]
public virtual int AssociateId { get; set; }
Property Value
Type Description
int
See Also
IEMailAgent

EMailAccountId

The account primary key

Declaration
[DataMember]
public virtual int EMailAccountId { get; set; }
Property Value
Type Description
int
See Also
IEMailAgent

EMailAddress

The account (from) address

Declaration
[DataMember]
public virtual string EMailAddress { get; set; }
Property Value
Type Description
string
See Also
IEMailAgent

ErrorCount

Count of concurring errors of fetching email. Readonly field

Declaration
[DataMember]
public virtual int ErrorCount { get; set; }
Property Value
Type Description
int
See Also
IEMailAgent

ErrorReason

Reason/Error message. Readonly field

Declaration
[DataMember]
public virtual string ErrorReason { get; set; }
Property Value
Type Description
string
See Also
IEMailAgent

InboxFolder

Inbox folder name if available in the db

Declaration
[DataMember]
public virtual string InboxFolder { get; set; }
Property Value
Type Description
string
See Also
IEMailAgent

IncomingCredentials

Account credentials for imap

Declaration
[DataMember]
public virtual ServiceAuth IncomingCredentials { get; set; }
Property Value
Type Description
ServiceAuth
See Also
IEMailAgent

LastFetch

When we last fetched email in UTC.

Declaration
[DataMember]
public virtual DateTime LastFetch { get; set; }
Property Value
Type Description
DateTime
See Also
IEMailAgent

OutgoingCredentials

Account credentials for smtp

Declaration
[DataMember]
public virtual ServiceAuth OutgoingCredentials { get; set; }
Property Value
Type Description
ServiceAuth
See Also
IEMailAgent

SentFolder

Sent email folder name if available in the db

Declaration
[DataMember]
public virtual string SentFolder { get; set; }
Property Value
Type Description
string
See Also
IEMailAgent

SimpleMode

Simple mode used for sending and retrieving invitations, accept/decline etc. without the full Inbox GUI experience

Declaration
[DataMember]
public virtual short SimpleMode { get; set; }
Property Value
Type Description
short
See Also
IEMailAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
IEMailAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IEMailAgent

See Also

IEMailAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top