email

Sends an email with HTML content. The content between the opening and closing tags becomes the email body.

{% email to: "[email protected]", subject: "Order Confirmation" %}
  <h1>Thank you for your order!</h1>
  <p>Your order #{{ order.name }} has been confirmed.</p>
  <p>Total: {{ order.total_price | money }}</p>
{% endemail %}

Syntax

{% email to: "[email protected]", subject: "Subject line" %}
  HTML content here...
{% endemail %}

Parameters

Parameter
Required
Description

to

Yes

Recipient email address

subject

No

Email subject line

cc

No

CC recipient(s)

bcc

No

BCC recipient(s)

replyTo

No

Reply-to email address

attachments

No

File attachments

Examples

Basic email:

With CC and Reply-To:

Dynamic recipient:

With attachments:

Notes

  • Emails are sent from DataJet's verified sender address

  • Daily email limit applies per store

  • Store must be trusted and have email sending enabled

  • HTML content is supported in the email body

  • Each email sent consumes 1 credit

Last updated