Save custom email server
Send your clients' emails through your own email server.
Reseller plan only. Buy the Reseller plan to get access.
Emails then come from your domain. The server gets a live login check before
anything is saved. If the login fails, nothing changes and the response is
400 with the reason. Save your brand first.
Who may call: a key whose user is the owner or an admin of a reseller
organization that can hold a brand and use a custom email server. Any other
user gets 403.
host and port are required. encryption is starttls (the default), ssl or none. If you leave password blank and a server is already saved, the saved password is used. The password is never returned.
The response is the full brand state, the same object GET /reseller/identity returns, with smtp.active set to true. To check a
server without saving it, use POST /reseller/identity/smtp/test. To stop
using it, use POST /reseller/identity/smtp/disable.
Errors: 400 invalid_request when no brand is saved, host or port is
missing, encryption is not one of the three values, or the login fails.
401 for a missing or invalid key. 403 forbidden when the user is not the
owner or an admin, or the account cannot hold a brand or use a custom email
server. 500 server_error for a server error.
Body
hoststringrequiredEmail server host name.
portintegerrequiredEmail server port, usually 587 for starttls or 465 for ssl.
usernamestringLogin name.
passwordstringLogin password. Leave it blank to use the saved password.
encryptionenumOne of: starttlssslnone
Default starttls
from_emailstringAddress your clients' emails are sent from.
Was this page helpful?
