Requires any of the roles: | SystemAdministrator, Manager, Customer |
POST | /settings/test-email |
---|
"use strict";
export class EmailAccount {
/** @param {{id?:string,server?:string,userName?:string,port?:number,emailAddress?:string,displayName?:string,password?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {string} */
server;
/** @type {string} */
userName;
/** @type {number} */
port;
/** @type {string} */
emailAddress;
/** @type {string} */
displayName;
/** @type {string} */
password;
}
export class SendTestEmail {
/** @param {{account?:EmailAccount,emailAddress?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {EmailAccount}
* @description The email account to send from */
account;
/**
* @type {string}
* @description The user to send to */
emailAddress;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /settings/test-email HTTP/1.1
Host: team.evovoice.io
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"account":{"id":"String","server":"String","userName":"String","port":0,"emailAddress":"String","displayName":"String","password":"String"},"emailAddress":"String"}