Email customers after purchasing a certain product with Mechanic.

Mechanic is the one-tool-does-it-all automation app for Shopify. :)

Email customers after purchasing a certain product

by Jed Storie (jed@fortco.tech)

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 product sku, email subject, and email body.

15-day free trial – unlimited tasks

Developer details

Events
when an order is created (shopify/orders/create)
Options
product sku (required), email subject (required), email body (multiline, required)
Script
{% for line_item in order.line_items %}
  {% if line_item.sku == options.product_sku__required %}
    {
      "action": {
        "type": "email",
        "options": {
          "to": {{ order.email | 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": {{ shop.name | json }}
        }
      }
    }
  {% endif %}
{% endfor %}
Yep, that’s just Liquid! If this is interesting to you, check out our documentation! Mechanic is hugely developer-friendly. :)