The ‘Views Send’ module enables you to create personalized mass emails from a view: With this feature, if, for example, a store would like to send an email reminder to all ticket holders for an upcoming event, it can create a view to pull up email addresses associated with orders and send a mass email. For now, the email can only be plain text.
NOTE: To have this module enabled on your site please send a request to [email protected] and we will enable the module and send you confirmation that it has been enabled.
CONFIGURE THE MODULE
Navigate to: Configuration > System > Views Send
-
Configure the settings
-
Cron throttle: Sets the number of messages per cron run. We recommend this be set to no more than 20.
-
Mail spool expiration: All emails are spooled, this field determines how long messages are retained in the spool after successfully being sent. We recommend this be set to 1 day.
-
Log e-mails: If selected, all outgoing messages are logged in the system log. However, this does not indicate the status of delivery.
-
Save configuration
IMPORTANT VIEW TIPS
-
Clone: If you are not familiar with Views, before making any changes to an existing view, we highly recommend that you "clone" the view and try out your changes on the clone version first.
-
Saving changes: All changes you make to your view on the edit page are temporary until you click Save. For example, if you change the sort criteria and click OK in its window, the change will be lost if you leave the main view edit page without clicking Save. We highly recommend that you save your work frequently - especially when you see the message “All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard your changes.”
-
Administrative names and descriptions: It will help you manage and identify your views and displays if you utilize the fields that allow you to add optional descriptions or names.
-
Apply options: When working in settings, always change the ‘For’ option from ‘All Displays’ to ‘This block (override)’ so that the changes you make only alter the block (or page) you are working on. The ‘Apply’ button should say “Apply (this display)”.
CREATE THE VIEW
Navigate to: Structure > Views > Add New View
-
Enter a name for the view - Example: Send E-mail
-
Enter an additional description for the view (optional but recommended) Example: E-mail customers directly from the site
-
Select what you want this view to display:
-
Show - set to ‘Users’
-
Sorted by - set to ‘Newest First’
-
Confirm ‘Create a page’ is selected and enter the configurations
-
Page title - This will automatically default to the same name you entered previously in step 1. However, you can change it if desired. This title will be used in the display at the top of the page and in various parts of the browser. Example: Send E-mail
-
Path - This will be the path used to navigate to the page you are creating - use the default or set a custom path. We recommend giving this an ‘Admin’ path and placing it under the ‘Reports’ section. Example: https://www.yoursitename.com/admin/store/reports/send-e-mail
-
Display format - set to ‘Table’
-
Items to display - You can specify the number of items your view displays on a page, with a pager to navigate between them or leave this field blank to display all items. We recommend setting this to 25 for this View.
-
Use a pager - should be selected for this View
-
Continue & edit
-
Under ‘Page Settings’ select ‘Menu: No menu’
-
Select ‘Normal menu entry’
-
Enter a ‘Title’ - Example: Send E-mail
-
Enter a ‘Description’ - Example: Use to send e-mail to users from the site - Apply
-
Under ‘Page Settings’ select ‘Menu: Normal
-
Set the ‘Menu’ field to ‘Management’ - Apply
-
Under ‘Fields’ confirm ‘User: Name’ is already in place and select it
-
Change the ‘Label’ to Username - Apply (this display)
-
Under ‘Fields’ select ‘Add’
-
Search for ‘email’ and select ‘User: email’ - Apply (this display)
-
On the configuration screen, you may change the label for this column (optional) - Apply (this display)
-
Under ‘Fields’ select ‘Add’
-
Search for ‘global’ and select ‘Global: send email’ - Apply (this display)
-
On the configuration screen, you may change the label for this column (optional) - Apply (this display)
-
Under ‘Filter Criteria’ select ‘Add’
-
Search for ‘Email’ and select ‘User: Email’ - Apply (this display)
-
On the configuration page, select ‘Expose this filter to visitors, to allow them to change it’
-
Set the operator to ‘is equal to’ - Apply (this display)
-
Under ‘Filter Criteria’ select ‘Add’
-
Search for ‘name’ and select ‘User: Name’ - Apply (this display)
-
On the configuration page, select ‘Expose this filter to visitors, to allow them to change it’
-
Set the operator to ‘is equal to’
-
Change the ‘Label’ to Username - Apply (this display)
-
Save
This gives you a basic view in which you can select users and send them emails directly from your site. However, depending on your planned use you may want to make some additional modifications to this view, such as following the next set of steps to add a relationship to orders.
ADD RELATIONSHIP TO ORDERS
USER:ORDERS
-
Expand the ‘Advanced’ section
-
Under ‘Relationships’ select ‘Add’
-
Select ‘User: Orders’ - Apply (this display)
-
Leave the ‘Identifier’ as is and Apply (this display)
-
Save
ORDER:CUSTOMER
-
Expand the ‘Advanced’ section
-
Under ‘Relationships’ select ‘Add’
-
Select ‘Order: Customer’ - Apply (this display)
-
Leave the ‘Identifier’ as is and Apply (this display)
-
Save
ORDER:PRODUCTS
-
Expand the ‘Advanced’ section
-
Under ‘Relationships’ select ‘Add’
-
Select ‘Order: Products’ - Apply (this display)
-
Leave the ‘Identifier’ as is and Apply (this display)
-
Save
You have now created a ‘relationship’ between users and orders and can add order fields to this view.
ADD ORDER FIELDS & FILTERS
Again, depending on your planned use for this view you may want to add different order fields and filters. Below are the steps for some of the more common options.
ORDER ID FIELD
-
Under ‘Fields’ select ‘Add’
-
Search for and select ‘Order: Order ID’
-
Apply (this display)
-
Select ‘Link this field to the order view page’ (optional) - if selected you will be able to select the order and be directed to the order view.
-
Apply (this display)
ORDER BILLING FULL NAME / DELIVERY FULL NAME FIELD
-
Under ‘Fields’ select ‘Add’
-
Search for and select ‘Order: Billing address: First name’ (If you want to display the Delivery first name search for and select ‘Order: Delivery address: First name’)’
-
Apply (this display)
-
Adjust the label to identify which name you are showing - Example: Billing first name
-
Apply (this display)
ORDER BILLING FULL NAME / DELIVERY FULL NAME FILTER
-
Under ‘Filter Criteria’ select ‘Add’
-
Search for and select ‘Order: Billing address: First name’ (If you want to filter by the Delivery first name search for and select ‘Order: Delivery address: First name’)
-
Apply (this display)
-
Select ‘Expose this filter to visitors, to allow them to change it’
-
Set the ‘Operator’ to ‘is equal to’
-
Apply (this display)
ISBN/SKU FILTER
-
Under ‘Filter Criteria’ select ‘Add’
-
Search for and select ‘Ordered product: SKU’
-
Apply (this display)
-
Select ‘Expose this filter to visitors, to allow them to change it’
-
Set the ‘Operator’ to ‘is equal to’
-
Apply (this display)
These are just a few of the fields and filters you could add. Browse through the list of available fields and filters to see what you may want to configure.
NOTE: You can rearrange the order of your fields and filters by clicking the arrow next to add and selecting ‘Rearrange’.