Edit the system SMTP configuration
Configure the email capability of the system.
Request
Security
| Any | Super User | System Admin | Security Admin | Operator |
|---|---|---|---|---|
| superUser | systemAdmin |
HTTP method
POST /manager/api/{apiResponseType}/1.0/editSystemSmtpConfiguration.adm HTTP/1.1
Host:{manager.dsnet}
enabled={true|false}&from={fromEmail}&host={mailHost}&secure={true|false}
Curl method
curl -u {admin}:{password} -k
”https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/editSystemSmtpConfiguration.adm“
-d
”enabled={true|false}&from={fromEmail}&host={mailHost}&secure={true|false}“
Parameters
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| enabled | Boolean | Optional |
Enables or disables SMTP.
|
|
| from | String | enabled=true |
From address to send for outgoing emails; must be a valid email address. |
|
| host | String | enabled=true |
Address of host SMTP server. |
|
| secure | Boolean | Optional |
Use SMTP over SSL. |
|
| usingCustomPort | Boolean | Optional | false |
Flag specifies whether to use a custom port. |
| port | Int | Optional | 25 / 465 (SMTP / SMTPS) |
Port that is used with SMTP server. |
| authenticated | Boolean | Optional | false |
SMTP server requires authentication. |
| username | String | authenticated=true |
User name to authenticate with SMTP server. |
|
| password | String | authenticated=true |
Password to authenticate with SMTP server. |
|
| testAddress | String | Optional |
Valid email address. Manager sends a daily email to this email address if given. |
Response
Returns success or failure status.
JSON response example
Default JSON success or failure response that is shown in Default JSON success response and Default JSON failure response.
Parameters
None other than the default response parameters shown in Common response parameters.