Requires any of the roles: | SystemAdministrator, Manager, Customer |
POST | /settings/test-email |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
/**
* Send a test email from the specified account
*/
@Api(Description="Send a test email from the specified account")
open class SendTestEmail : IPost
{
/**
* The email account to send from
*/
@ApiMember(Description="The email account to send from")
open var account:EmailAccount? = null
/**
* The user to send to
*/
@ApiMember(Description="The user to send to")
open var emailAddress:String? = null
}
open class EmailAccount
{
open var id:String? = null
open var server:String? = null
open var userName:String? = null
open var port:Int? = null
open var emailAddress:String? = null
open var displayName:String? = null
open var password:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
account:
{
id: String,
server: String,
userName: String,
port: 0,
emailAddress: String,
displayName: String,
password: String
},
emailAddress: String
}