- URL:
- https://<root>/system/emailSettings
- Methods:
GET
- Operations:
- Update, Test, Delete
- Required Capability:
- Access allowed with the "Security and Infrastructure" privilege
- Version Introduced:
- 10.8.1
Description
The email
resource returns the email settings that have been configured for an organization. These settings can be used to send out email notifications from ArcGIS Enterprise portal about password policy updates and user type, add-on, or organization capability license expirations, and allow members with built-in account to use an email-based workflow to retrieve forgotten passwords. Email notifications regarding policy changes and expiration notices will be sent to members listed under the organization's administrative contacts.
Request parameters
Parameter | Details |
---|---|
| The response format. The default format is Values: |
Example usage
The following is a sample request URL used to access the email
resource:
https://machine.domain.com/webadaptor/portaladmin/system/emailSettings?f=pjson
JSON Response syntax
{
"accountId": "<Organization ID>",
"smtpHost": "<Host information>",
"smtpPort": <Port number>,
"mailFrom": "<Admin email address>",
"mailFromLabel": "<Admin email address apperance>",
"encryptionMethod": "<SSL | TLS | NONE>",
"authRequired": <true | false>,
"smtpUser": "<username for smtp account>", //Only required if authRequired is set to true
"smtpPass": "<password for smtp account>" //Only required if authRequired is set to true
}
JSON Response examples
Example one: no authentication
The example below demonstrates a returned response when no authentication is required:
{
"accountId": "0123456789ABCDEF",
"smtpHost": "smtp.myorg.org",
"smtpPort": 25,
"mailFrom": "admin@myorg.org",
"mailFromLabel": "My Org Admin",
"encryptionMethod": "NONE",
"authRequired": false
}
Example two: authentication required
The example below demonstrates a returned response when authentication is required. If auth
is true
, the smtp account username and password are also included in the response:
{
"accountId": "0123456789ABCDEF",
"smtpHost": "smtp.myorg.org",
"smtpPort": 25,
"mailFrom": "admin@myorg.org",
"mailFromLabel": "My Org Admin",
"encryptionMethod": "NONE",
"authRequired": true,
"smtpUser": "admin",
"smtpPass": "test1234"
}