Liqiud basics
Modules
API
Mailer
Mailers
On this page
Overview
With mailer templates you can send email to the page visitors when he or she e.g buys a product in the webshop or sending in a form.
There are many different type of mailers and some of the mailers have different drops that you can use.
Newsletters subscription activation
To use this you create a new template with the name subscriber_activation and give the template the mailer type.
Below is a list of all the available drops on the Newsletters subscription activation mailer
| Name | Description |
| site | Site liquid drop |
| locale | |
| subscriber | Subscriber liquid drop |
WM3 Forms
To use this you create a new template with any name that you want and give the template the mailer type.
Below is a list of all the available drops on the WM3 Forms mailer
| Name | Description |
| site | Site liquid drop |
| locale | Form locale |
| subject | Email subject |
| form_data | Form data |
| to_email | Array with receiver email(s) |
| original? | Returns true when sending to form email, false when sending to wm3_to |
Snippet
<!DOCTYPE html>
<html lang="{{ locale }}">
<head>
<meta charset="utf-8">
</head>
<body>
<h2>{{ subject }}</h2>
{% for field in form_data %}
<p>{{ field[0] }}: {{ field[1] | join: ', ' }}</p>
{% endfor %}
</body>
</html>
Password reset
To use this you create a new template with the name password_reset and give the template the mailer type.
Below is a list of all the available drops on the Password reset mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| lost_password_url | String - URL for lost passwords, contains lost password token |
Auto registered customer
To use this you create a new template with the name auto_register and give the template the mailer type.
Below is a list of all the available drops on the Auto registered customer mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| lost_password_url | String - URL for lost passwords, contains lost password token |
Welcome
To use this you create a new template with the name welcome and give the template the mailer type.
Below is a list of all the available drops on the Welcome mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| welcome_url | String - URL for welcome url, contains verification token |
Invitation
To use this you create a new template with the name invitation and give the template the mailer type.
Below is a list of all the available drops on the Invitation mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| invitation_url | String - URL for invitation template. Contains verification token |
Pending approval
To use this you create a new template with the name pending_approval and give the template the mailer type.
Below is a list of all the available drops on the Pending approval mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
Order confirmation
To use this you create a new template with the name order_confirmation and give the template the mailer type.
Below is a list of all the available drops on the Order confirmation mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| order | Order liquid drop |
Order notification
To use this you create a new template with the name order_notification and give the template the mailer type.
Below is a list of all the available drops on the Order notification mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| order | Order liquid drop |
Requirement: In the webshop configuration page "Send New Order Notification" needs to be checked and Notification email needs to be present.
Customer notification
To use this you create a new template with the name new_customer and give the template the mailer type.
Below is a list of all the available drops on the Customer notification mailer
| Name | Description |
| site | Site liquid drop |
| locale | locale |
| store | Store liquid drop |
| customer_account | Customer account liquid drop |
Requirement: In the webshop configuration page "Send new customer notification" needs to be checked and Notification email needs to be present.
You can append ".html" or ".text" to make the different versions of mail, e.g. new_customer.html
Shipment notification
To use this you create a new template with the name shipment_notification and give the template the mailer type.
Below is a list of all the available drops on the Shipment notification mailer
| Name | Description |
| site | Site liquid drop |
| customer | Customer liquid drop |
| order | Order liquid drop |
| shipment | Shipment liquid drop |
Recommend variant
To use this you create a new template with the name recommend_variant and give the template the mailer type.
Below is a list of all the available drops on the Recommend variant mailer
| Name | Description |
| site | Site liquid drop |
| locale | |
| store | Store drop |
| product | Product drop |
| variant | Variant drop |
| sender | Hash containing params[:sender] |
| Recipient email |
Updated: 2020-08-20