This function retrieves a BoxTrapper email message template.
Important:
When you disable the Receive Mail role, the system disables this function.
email required | string <email> A valid email address on the cPanel account. Warning: If you call this function in Webmail, the system overrides this parameter. This parameter defaults to the current email address. Example: email=user@example.com |
template required | string The message template.
Note: For more information on each template, read our BoxTrapper documentation. Example: template=verify |
uapi --output=jsonpretty \ --user=username \ BoxTrapper \ get_email_template \ email='user@example.com' \ template='verify'
{- "apiversion": 3,
- "func": "get_email_template",
- "module": "BoxTrapper",
- "result": {
- "data": "To: %email%\\nSubject: Re: %subject%\\n\\nThe user %acct% does not accept mail from your address.\\n\\nThe headers of the message sent from your address are shown below:\\n\\n%headers%\\n\",",
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}