Email customers after purchasing a certain product, with Mechanic.

Mechanic is a development platform for Shopify. :)

Email customers after purchasing a certain product

Send an email to the customer with specific information regarding a product they just purchased. Useful for digital products, or anytime you'd like to communicate something extra about a product you offer. (Note: this does not replace the Shopify order confirmation email!)

Runs when an order is created. Configuration includes email subject, email body, product sku, and days to wait before emailing.

15-day free trial – unlimited tasks

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

Open source
View on GitHub to contribute to this task
when an order is created (shopify/orders/create)
email subject (required), email body (multiline, required), product sku (required), days to wait before emailing (number)
{% capture email_action %}
    "action": {
      "type": "email",
      "options": {
        "to": {{ | json }},
        "subject": {{ options.email_subject__required | json }},
        "body": {{ options.email_body__multiline_required | strip | newline_to_br | json }},
        "reply_to": {{ shop.customer_email | json }},
        "from_display_name": {{ | json }}
{% endcapture %}

{% if event.preview %}
  {{ email_action }}
{% else %}
  {% for line_item in order.line_items %}
    {% if line_item.sku == options.product_sku__required %}
      {{ email_action }}
      {% break %}
    {% endif %}
  {% endfor %}
{% endif %}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.