Chameleoon MAX · Emails
sendTestEmail mutation
sendTestEmail is a GraphQL mutation of the Chameleoon MAX API. Send it as POST https://max-api.chameleoon.sk/api/v1/graphql with your API key, see Chameleoon MAX.
Sends a template as a test to 1 to 5 addresses. Call it to check how a template looks in a real mailbox.
- Requires the
emailTemplate.manageandemail.sendpermissions. - It works as
sendEmailwith a template, sent only to the addresses you name. It dropscc,bccand the template's default attachments. - It prefixes the subject with
[TEST]and marks the messageisTest. - It links the message to nothing (not the resource, not an attachment's record), so the message never shows in a record's history. The API key that sent it, or an API key without a scope, reads it.
- Without a
resource, a template written for a kind of record renders fixed, fictitious sample data. - Its errors are those of
sendEmail. It shares therequestIds ofsendEmail, so arequestIdused by one fails the other withCONFLICTand reasonREQUEST_ID_REUSED. - It returns as
sendEmaildoes. Read the message's status withemailMessage.
An error whose path runs below this field does not mean the call failed: the message was queued, so do not retry. See
Mutation.
It may render an invoice PDF.
Costs 11 points plus its selection.
Arguments
input:SendTestEmailInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.