Account:Mail ()

The declaration to configure a Mail account.

iOS(15.0)macOS(13.0)visionOS(1.1)
Branch: release

Settings (26)

SettingTypeRequiredDefaultManual InstallSupported OS
Account Name
VisibleName
The name that apps show to the user for this mail account. If not present, the system generates a suitable default.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
User Identity Asset Reference
UserIdentityAssetReference
The identifier of an asset declaration that contains the user identity for this account. Set the corresponding asset type to `UserIdentity`.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
Incoming Server Settings
IncomingServer
The settings for the incoming mail server for this account.
6 subkeys
dictionaryrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Type
ServerType
The mail protocol this account uses.
stringrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Host Name
HostName
The host name for the incoming mail server.
stringrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Port
Port
The port number for the incoming mail server.
integeroptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Authentication Method
AuthenticationMethod
The authentication method for the incoming mail server.
stringrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Authentication Credentials Asset Reference
AuthenticationCredentialsAssetReference
The identifier of an asset declaration that contains the credentials for this account to authenticate with an incoming mail server. The corresponding asset must be of type `CredentialUserNameAndPassword`. If the `AuthenticationMethod` is `None`, this field must be blank. Otherwise, the declaration must contain this field.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
IMAP Path Prefix
IMAPPathPrefix
The path prefix for the IMAP server. The system uses this only when `ServerType` is `IMAP`.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
Outgoing Server Settings
OutgoingServer
The settings for the outgoing mail server for this account.
4 subkeys
dictionaryrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Host Name
HostName
The host name for the outgoing mail server.
stringrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Port
Port
The port number for the outgoing mail server.
integeroptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Server Authentication Method
AuthenticationMethod
The authentication method for the outgoing mail server.
stringrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
Authentication Credentials Asset Reference
AuthenticationCredentialsAssetReference
The identifier of an asset declaration that contains the credentials for this account to authenticate with an outgoing mail server. The corresponding asset must be of type `CredentialUserNameAndPassword`. If the `AuthenticationMethod` is `None`, this field must be blank. Otherwise, the declaration must contain this field.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
S/MIME Settings
SMIME
Settings for S/MIME.
2 subkeys
dictionaryoptional
Yes
iOS (17.0+)
└─
S/MIME Signing Settings
Signing
Settings for S/MIME signing.
4 subkeys
dictionaryoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Signing Enabled
Enabled
If `true`, the system enables S/MIME signing.
booleanrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
S/MIME Signing Identity Asset Reference
IdentityAssetReference
Specifies the identifier of an asset declaration containing the identity required for S/MIME signing of messages sent from this account.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Signing User Overrideable
UserOverrideable
If `true`, the user can turn S/MIME signing on or off in Settings.
booleanoptionalfalse
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Signing Identity User Overrideable
IdentityUserOverrideable
If `true`, the user can select an S/MIME signing identity in Settings.
booleanoptionalfalse
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─
S/MIME Encryption Settings
Encryption
Settings for S/MIME encryption.
5 subkeys
dictionaryoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Encryption By Default Enabled
Enabled
If `true`, the system enables S/MIME encryption by default, which the user can't override if `PerMessageSwitchEnabled` is `false`.
booleanrequired
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
S/MIME Encryption Identity Asset Reference
IdentityAssetReference
Specifies the identifier of an asset declaration containing the identity required for S/MIME encryption. The system attaches the public certificate to outgoing mail to allow the user to receive encrypted mail. When the user sends encrypted mail, the system uses the public certificate to encrypt the copy of the mail in their Sent mailbox.
stringoptional
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Encryption By Default User Overrideable
UserOverrideable
If `true`, the user can set the default value for S/MIME encryption to on or off in Settings.
booleanoptionalfalse
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Encryption Identity User Overrideable
IdentityUserOverrideable
If `true`, the user can select an S/MIME signing identity in Settings.
booleanoptionalfalse
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)
└─ └─
Per Message Switch Enabled
PerMessageSwitchEnabled
If `true`, the system enables the per-message encryption switch in the compose view.
booleanoptionalfalse
Yes
iOS (15.0+)macOS (13.0+)visionOS (1.1+)