WHMCS icon

WHMCS

Interact with the WHMCS billing & automation API

System → Send Email

AI-generated

Summary

Send a WHMCS email using a named email template or custom email content. The node calls the WHMCS SendEmail API action once for each incoming item and returns each API response.

Inputs

  • Message Name — WHMCS email template name. Leave blank to send a custom email.
  • Email Fields — Optional fields merged into the API request: Client ID (id) for template emails; Custom Message and Custom Subject for custom emails; Custom Type (general, product, domain, or invoice); and Related ID (customvars), described as base64-encoded serialized merge variables.
  • Custom Parameters — Optional additional WHMCS API parameters as case-sensitive name/value pairs. These are merged into the request and can override fields with matching names.

Output shape

A list of items, one per incoming item, each containing the WHMCS API response as JSON.

The request omits empty strings and zero values. On API or request errors, the node fails unless Continue On Fail is enabled, in which case it returns an item containing an error field.

Examples

Example 1: Send a template email

Set Message Name to the WHMCS template name and provide the recipient Client ID in Email Fields.

Example 2: Send a custom email

Leave Message Name blank and provide Custom Subject and Custom Message, with a Custom Type if needed.

Links

Discussion