SMTP configuration
SMTP (Simple Mail Transfer Protocol) is used for any email functionality. Mojo Aware uses SMTP settings to notify users through email.
JSON Table
Attribute | Data Type | Description |
---|---|---|
policyCreatedAtLocId | application/json | ID of the location where policy is created. The value is of the type Location ID JSON. |
policyType | String | A read-only field for internal use. |
ipAddress | String | IP Address or the hostname of the SMTP server used by the system for sending email alerts. |
port | int | Port number of the SMTP server used by the system for sending e-mail alerts. |
emailAddress | String | Source address from which email alerts are sent. |
authenticationInfo | application/json | |
authenticationInfo/authenticationReqd | boolean | A true or false value indicating whether to enable or disable SMTP authentication. |
authenticationInfo/username | String | Username for SMTP server authentication, when SMTP server authentication is enabled. |
authenticationInfo/password | String | Password for SMTP server authentication, when SMTP server authentication is enabled. |
certificateFileKeys | List of private CA certificate file keys to be used for SMTP server authentication |
|
existingCertificatesInfo | application/json | |
verifyCertficate | boolean | A true or false value indicating whether to verify SMTP server’s certificate against built-in well-known CA certificates or uploaded CA certificate. If set to true, an e-mail is not sent out if the certificate match fails. |
startTLSMandatory | boolean | A true or false value indicating whether to |
Copy Sample JSON
Sample JSON
{ "policyCreatedAtLocId": { "type": "locallocationid", "id": 0 }, "policyType": "SMTP_POLICY", "ipAddress": "127.0.0.1", "port": 25, "emailAddress": "[email protected]", "authenticationInfo": { "authenticationReqd": false, "username": "", "password": "" }, "certificateFileKeys": null, "existingCertificatesInfo": [], "verifyCertficate": false, "startTLSMandatory": false }
API Calls
/V5/configuration/global/smtp
/V5/configuration/global/smtp