Email runs everything. Mechanic sends email. You're covered. 👌

The email action type accepts these options:

  • The recipient
  • The subject
  • The body
  • Reply to
  • The sender display name

By default, the sender email address will look like this:

yourshop.myshopify.com@usemechanic.com 

To change this to an email address of your own, get in touch via that chat button in the corner. We'll be happy to help out. :)

For developers

Options

  • "to" – required
  • "subject" – required
  • "body" – required; allows basic HTML
  • "reply_to" – optional
  • "from_display_name"  – optional; will be combined with the shop's assigned sender address

Examples

{
  "action": {
    "type": "email",
    "options": {
      "to": "hello@example.com",
      "subject": "Hello world",
      "body": "It's a mighty fine day!",
      "reply_to": {{ shop.customer_email | json }},
      "from_display_name": {{ shop.name | json }}
    }
  }
}

This example hard-codes the recipient, the subject, and the body. It then uses your shop's customer service email as the "reply-to" header, and uses the shop's own name as the display name for the "from" header.

Try using Liquid filters to make using captured values easy:

{% capture email_body %}
  <b>Hello!</b>

  It's fantastic to see you!
{% endcapture %}

{
  "action": {
    "type": "email",
    "options": {
      "to": "hello@example.com",
      "subject": "Hello world",
      "body": {{ email_body | unindent | strip | newline_to_br | json }}
    }
  }
}

Did this answer your question?