> ## 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.EMailConnectionInfo

# <a id="SuperOffice_WebApi_Data_EMailConnectionInfo" /> Class EMailConnectionInfo

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

Carrier object for EMailConnectionInfo.
All information needed to connect to a mailserver

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[EMailConnectionInfo](SuperOffice.WebApi.Data.EMailConnectionInfo.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)

## Constructors

### <a id="SuperOffice_WebApi_Data_EMailConnectionInfo__ctor" /> EMailConnectionInfo()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_EMailConnectionInfo_Folder" /> Folder

Optional folder to set as current after logging in

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_EMailConnectionInfo_Password" /> Password

Password for the username

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_EMailConnectionInfo_ServerName" /> ServerName

Hostname or ip to server to connect to. Custom ports may be specified by adding ':' and the port number after the name/ip. Ex: '127.0.0.1:6543'

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

#### Property Value

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

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

Use Graph API

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_EMailConnectionInfo_UseSSL" /> UseSSL

Use a secure connection with the server

```csharp theme={null}
public virtual bool UseSSL { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_EMailConnectionInfo_UserName" /> UserName

Name of user to log in with

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

#### Property Value

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

## See Also

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


## Related topics

- [SuperOffice.WebApi.Data.EMailConnectionInfoExtended](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMailConnectionInfoExtended.md)
- [WebAPI changes in SuperOffice 12.0](/release-notes/12/api/changes-webapi-12.0.342.0.md)
- [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)
- [SuperOffice.WebApi.Data.EMail GetFolderInfoRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_GetFolderInfoRequest.md)
- [SuperOffice.WebApi.Data.EMail SendEMailsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_SendEMailsRequest.md)
