> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.EMailAccount

# <a id="SuperOffice_WebApi_Data_EMailAccount" /> Class EMailAccount

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for EMailAccount.
Properties for an email account

```csharp theme={null}
public class EMailAccount : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[EMailAccount](SuperOffice.WebApi.Data.EMailAccount.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Examples

Get EMailAccount 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new EMailAgent(configuration);
var eMailAccount = agent.GetEMailAccount( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_EMailAccount__ctor" /> EMailAccount()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public EMailAccount()
```

## Properties

### <a id="SuperOffice_WebApi_Data_EMailAccount_AccountStatus" /> AccountStatus

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

```csharp theme={null}
public virtual short AccountStatus { get; set; }
```

#### Property Value

[short](https://learn.microsoft.com/dotnet/api/system.int16)

### <a id="SuperOffice_WebApi_Data_EMailAccount_AssociateId" /> AssociateId

Id of the associate who owns this account

```csharp theme={null}
public virtual int AssociateId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_EMailAccount_EMailAccountId" /> EMailAccountId

The account primary key

```csharp theme={null}
public virtual int EMailAccountId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_EMailAccount_EMailAddress" /> EMailAddress

The account (from) address

```csharp theme={null}
public virtual string EMailAddress { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAccount_ErrorCount" /> ErrorCount

Count of concurring errors of fetching email. Readonly field

```csharp theme={null}
public virtual int ErrorCount { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_EMailAccount_ErrorReason" /> ErrorReason

Reason/Error message. Readonly field

```csharp theme={null}
public virtual string ErrorReason { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAccount_InboxFolder" /> InboxFolder

Inbox folder name if available in the db

```csharp theme={null}
public virtual string InboxFolder { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAccount_IncomingCredentials" /> IncomingCredentials

Account credentials for imap

```csharp theme={null}
public virtual ServiceAuth IncomingCredentials { get; set; }
```

#### Property Value

[ServiceAuth](SuperOffice.WebApi.Data.ServiceAuth.md)

### <a id="SuperOffice_WebApi_Data_EMailAccount_LastFetch" /> LastFetch

When we last fetched email

```csharp theme={null}
public virtual DateTime LastFetch { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_EMailAccount_OutgoingCredentials" /> OutgoingCredentials

Account credentials for smtp

```csharp theme={null}
public virtual ServiceAuth OutgoingCredentials { get; set; }
```

#### Property Value

[ServiceAuth](SuperOffice.WebApi.Data.ServiceAuth.md)

### <a id="SuperOffice_WebApi_Data_EMailAccount_SentFolder" /> SentFolder

Sent email folder name if available in the db

```csharp theme={null}
public virtual string SentFolder { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_EMailAccount_SimpleMode" /> SimpleMode

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

```csharp theme={null}
public virtual short SimpleMode { get; set; }
```

#### Property Value

[short](https://learn.microsoft.com/dotnet/api/system.int16)

### <a id="SuperOffice_WebApi_Data_EMailAccount_UseGraphApi" /> UseGraphApi

Use the GraphApi for this account

```csharp theme={null}
public virtual short UseGraphApi { get; set; }
```

#### Property Value

[short](https://learn.microsoft.com/dotnet/api/system.int16)

## See Also

[EMailAgent](SuperOffice.WebApi.Agents.EMailAgent.md)


## Related topics

- [SuperOffice.WebApi.Agents.EMailAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.EMailAgent.md)
- [SuperOffice.WebApi.Agents.IEMailAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IEMailAgent.md)
- [WebAPI changes in SuperOffice 12.0](/release-notes/12/api/changes-webapi-12.0.342.0.md)
- [SuperOffice.WebApi.Data.EMail GetEMailAccountFromEMailAddressRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_GetEMailAccountFromEMailAddressRequest.md)
- [SuperOffice.WebApi.Data.EMail SyncEmailAccountRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_SyncEmailAccountRequest.md)
- [SuperOffice.WebApi.Data.EMail SyncEmailAccountsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_SyncEmailAccountsRequest.md)
