GoodSender icon

GoodSender

Send transactional, custom, and consent emails through GoodSender

Email → Send Template Email

AI-generated

Summary

Sends a predefined transactional template email through GoodSender to a single recipient via POST /v1/emails/template. It sends immediately and bypasses the Permission Loop, so no recipient consent is required.

Inputs

  • From Email (required) — Sender address, which must be on a domain verified in GoodSender.
  • From Name — Optional sender display name. Trimmed, and omitted if empty.
  • To Email (required) — Recipient email address.
  • To Name — Optional recipient display name.
  • Subject (required) — Subject line of the email.
  • Template (required) — Built-in template: OTP Code (default), MFA Enrollment, New Device Login, Order Completed, Order Receipt, Email Changed, Password Changed, or Custom (By ID).
  • Template ID (Custom) (required) — Shown only when Template is Custom (By ID). The exact template ID to send. The description says the API returns 404 if it doesn't exist.
  • Template variables — Fields shown per template, e.g. app_name for all built-ins. OTP Code also takes otp_code, expiry_minutes, purpose and anti_phishing_notice. Order Receipt takes description, receipt_number, purchase_date, payment_method and total. Empty values are not sent.
  • Variables — Shown only for Custom (By ID). Key/value pairs that fill the template placeholders. Rows with blank keys are skipped, and URL-type variables must point to the sender domain.
  • Request Options — Node settings for batching (items per batch, interval), ignoring SSL issues, proxy and timeout (default 10000 ms).

Output shape

The JSON response from the GoodSender API for each input item. The source doesn't define its fields.

Uses declarative routing with the goodSenderApi credential, and the base URL comes from the credential. The request body is {from, to, subject, template:{template_id, variables?}}. API errors, such as an unknown custom template ID or an unverified sender domain, surface as node errors.

Examples

Example 1: Send a login verification code

Template=OTP Code; From Email=no-reply@yourdomain.com; To Email={{$json.email}}; Subject='Your code'; app_name='Acme'; otp_code={{$json.code}}; expiry_minutes=10; purpose='signing in'.

Example 2: Send an order receipt after payment

Template=Order Receipt; set receipt_number, purchase_date, payment_method and total from the order data, plus description and app_name.

Example 3: Send a template not in the list

Template=Custom (By ID); Template ID (Custom)='welcome'; add Variables rows such as key=app_name, value=Acme.

Links

Discussion