Shopware icon

Shopware

Shopware

Actions778

Mail Operations → Build

AI-generated

Overview

This node operation builds an email content by applying a templating engine to a provided mail template using additional template data variables. It is useful for dynamically generating personalized email content based on order details or other contextual information. For example, it can create an email greeting a customer by name and including the current date or a message of the day.

Use Case Examples

  1. Generating order confirmation emails with customer-specific details.
  2. Creating daily notification emails with dynamic content such as dates or messages.

Properties

Name Meaning
Mail Template Type Provides additional variables to the templating engine under the property `templateData` to be used in the mail template.
Mail Template The content of the mail as a JSON object containing the template with placeholders to be rendered.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy configuration, and timeout duration.

Output

JSON

  • contentHtml - The rendered HTML content of the email after applying the template with the provided template data.

Dependencies

  • An API key credential for authentication to the mail service or templating engine may be required.

Troubleshooting

  • Ensure the JSON format of the mail template and template data is valid to avoid parsing errors.
  • If the templating engine fails to render, verify that all referenced variables exist in the template data.
  • Timeout errors may occur if the server is slow or unreachable; adjust the timeout setting accordingly.
  • SSL certificate errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this reduces security.

Discussion