The Views Send module allows you to compose and send emails directly from a views listing. The module makes it really easy to create a views listing page where an editor can select a few rows and send out mass emails.
For example, if you’re using Drupal Commerce to sell a particular product you could use Views Send to update your customers on the progress of their order. Just make sure you don’t spam the customer with a lot of emails.
A lot of what Views Send does, can be achieved using other modules like Simplenews, Rules and possibly Views Bulk Operations (VBO). However, Views Send is easier to use and the module is fairly lightweight.
In this tutorial, we’ll create a page that lists Drupal users and use Views Send to send out emails.
Obviously, the module depends on Views so make sure you download and install it.
Then, download and install Views Send.
If you use Drush, run the following command:
drush dl views ctools views_send
Create Views Listing Page
The first thing we need to do is create a page that will display a list of Drupal user accounts.
1. Go to Structure, Views and click on “Add new view”.
2. Fill out the “Add new view” form, using the values defined in Table 1.0 and click on “Continue & edit”.
Table 1-0. Create a new view
|View name||Latest users|
|Show||Users sorted by newest first|
|Create a page||Checked|
|Page title||Latest users|
3. In the “Page settings” section, click on “View user profiles” and change the permission to “Administer users”. This will make the page more secure. Only accounts with the permission “Administer users” can access it.
4. Now, click on Add in the Fields section and add the “User: E-mail” field to the view.
5. Again, click on Add in the Fields section but this time add “Global: Send e-mail” to the view.
At this point the view should have three fields: Name, E-mail and “Send e-mail”. Rearrange the fields so that the “Send e-mail” checkbox is on the far left.
Now that we have the views page all sorted let’s test it out.
1. Save the view, and go to
You should see a bunch of checkboxes and a button called “Send e-mail”.
2. Select a few rows and click on “Send e-mail”.
From this form you can configure a ton of stuff, but the most important fields are the recipient’s e-mail, subject and message.
Now, the subject and message fields are used in the actual email. The recipient’s e-mail field is used to define the email address that the message will be sent to.
3. Fill out the form and click Next.
If Token is installed, you get access to general tokens that can be used within your email message.
4. On the next page, after you’ve clicked on Next, you can preview everything before it’s sent.
Once you’re ready, just click on the Send button to send the emails.
If you need to send HTML emails, then I recommend you look at installing Mime Mail.