Class EMailAccount
Properties for an email account
Carrier object for EMailAccount. Services for the EMailAccount Carrier is available from the EMail Agent.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
Properties
AccountStatus
The account status (Disabled or...) Readonly field
Declaration
[DataMember]
public virtual short AccountStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| short |
See Also
AssociateId
Id of the associate who owns this account
Declaration
[DataMember]
public virtual int AssociateId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
EMailAccountId
The account primary key
Declaration
[DataMember]
public virtual int EMailAccountId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
EMailAddress
The account (from) address
Declaration
[DataMember]
public virtual string EMailAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
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
ErrorReason
Reason/Error message. Readonly field
Declaration
[DataMember]
public virtual string ErrorReason { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
InboxFolder
Inbox folder name if available in the db
Declaration
[DataMember]
public virtual string InboxFolder { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
IncomingCredentials
Account credentials for imap
Declaration
[DataMember]
public virtual ServiceAuth IncomingCredentials { get; set; }
Property Value
| Type | Description |
|---|---|
| ServiceAuth |
See Also
LastFetch
When we last fetched email in UTC.
Declaration
[DataMember]
public virtual DateTime LastFetch { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
See Also
OutgoingCredentials
Account credentials for smtp
Declaration
[DataMember]
public virtual ServiceAuth OutgoingCredentials { get; set; }
Property Value
| Type | Description |
|---|---|
| ServiceAuth |
See Also
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
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
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The carrier contents. |
See Also
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. |