Skip to main content

testEmailConfig

Requires at least one of the permissions settings:email:update or settings:tenant:update.

Sends a test email through the organization's configuration to the address given, from the company's own sender, and reports whether it worked. Requires permission to update email settings.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation TestEmailConfig($input: TestEmailConfigInput!) {
testEmailConfig(input: $input) {
message
success
}
}

Variables:

{
"input": {
"testEmail": "string"
}
}

Response:

{
"data": {
"testEmailConfig": {
"message": "string",
"success": true
}
}
}
testEmailConfig(
input: TestEmailConfigInput!
): TestEmailResult!

Arguments​

testEmailConfig.input ● TestEmailConfigInput! non-null input​

The address to send the test to and an optional subject and message.

Type​

TestEmailResult object​

The result of a test email.