Class EMailAccount
Properties for an email account
Carrier object for EMailAccount. Services for the EMailAccount Carrier is available from the IEMailAgent.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
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()
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 );
}
See Also
Properties
AccountStatus
The account status (Disabled or...) Readonly field
Declaration
public virtual short AccountStatus { get; set; }
Property Value
Type | Description |
---|---|
Int16 |
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 );
}
See Also
AssociateId
Id of the associate who owns this account
Declaration
public virtual int AssociateId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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 );
}
See Also
EMailAccountId
The account primary key
Declaration
public virtual int EMailAccountId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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 );
}
See Also
EMailAddress
The account (from) address
Declaration
public virtual string EMailAddress { get; set; }
Property Value
Type | Description |
---|---|
String |
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 );
}
See Also
ErrorCount
Count of concurring errors of fetching email. Readonly field
Declaration
public virtual int ErrorCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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 );
}
See Also
ErrorReason
Reason/Error message. Readonly field
Declaration
public virtual string ErrorReason { get; set; }
Property Value
Type | Description |
---|---|
String |
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 );
}
See Also
InboxFolder
Inbox folder name if available in the db
Declaration
public virtual string InboxFolder { get; set; }
Property Value
Type | Description |
---|---|
String |
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 );
}
See Also
IncomingCredentials
Account credentials for imap
Declaration
public virtual ServiceAuth IncomingCredentials { get; set; }
Property Value
Type | Description |
---|---|
ServiceAuth |
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 );
}
See Also
LastFetch
When we last fetched email in UTC.
Declaration
public virtual DateTime LastFetch { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
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 );
}
See Also
OutgoingCredentials
Account credentials for smtp
Declaration
public virtual ServiceAuth OutgoingCredentials { get; set; }
Property Value
Type | Description |
---|---|
ServiceAuth |
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 );
}
See Also
SentFolder
Sent email folder name if available in the db
Declaration
public virtual string SentFolder { get; set; }
Property Value
Type | Description |
---|---|
String |
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 );
}
See Also
SimpleMode
Simple mode used for sending and retrieving invitations, accept/decline etc. without the full Inbox GUI experience
Declaration
public virtual short SimpleMode { get; set; }
Property Value
Type | Description |
---|---|
Int16 |
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 );
}
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The carrier contents. |
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 );
}
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. |
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 );
}