Views Send | Drupal 8 Project | Drupal 8

Views Send | Drupal 8 Project

Project Name : Views Send project Link : Views Send
Created : 2014-06-20
Last Update : 2018-03-09
Current Version : 8.x-1.3
Download Views Send 8.x-1.3 Version From : Download

Views Send enables you to execute personalized mass mailing from a View.

Each row in the View generates one e-mail. The fields in the View can be used in the subject and mail body - through tokens - enabling easy personalized e-mails. The recipients (mail address and name) are obviously also take from the view.

How does it work?

  1. Create a view and add at least one column containing e-mail addresses.
  2. [Optional] Expose Views filters to let the user easily build list of recipients using UI.
  3. For Drupal 6
    1. Create a "Page" display and set the style to "Bulk Operations".
    2. On "Bulk Operations" style configuration, under "Selected operations", select Send mass mail (views_send_mail_action).
  4. For Drupal 7
    1. Add the "Global: Send E-mail" field to your view. This field provides the checkboxes that allow the user to select multiple rows.
    2. Create a "Page" (or "Block") display.
  5. Save the view, load the page, use exposed filters to build the list, select all or some rows and then - either choose the VBO action "Send mass mail" on Drupal 6, or click the "Send e-mail" button on Drupal 7.
  6. Fill the message form to configure the e-mail. Use tokens to personalize your e-mail. The module provide also row-based tokens, taken from the current row of the view. For example, if the view has a column with the key users_name (the user name) you can use this replacement token [views-send-users_name].
  7. Preview and send the message.

Note: For Drupal 6 messages are always queued in a spool table and delivered only on cron. (You can control how many messages will be send per cron run.) For Drupal 7 you can select to send the message directly using the Batch API in stead.

Dependencies & Integration

  • Views, of course.
  • The Drupal 6 version of Views Send depends on Views Bulk Operations (VBO) - version 1.11 or newer.
  • The module integrates features from:
    • Mime Mail. When the Mime Mail module is enabled, the user can choose to send rich HTML messages and/or use attachments.
    • Token. When the Token module is enabled, the user can insert context tokens into the subject or body of the message. Note that row-based tokens are available even if the Token module is disabled.
    • Rules. (Drupal 7 only.) When the Rules module is enabled, the user can define actions for when emails are sent and/or placed in the spool.

Known issues

  • If you run into MySQL errors or experience that you can't proceed to the confirmation page due to the error "Please select at least one item", there are two things you can do to try to fix this:
    • Increase max_allowed_packet for MySQL. Try 8M, 16M, 32M and 64M. If still no luck, try:
    • Increase innodb_log_file_size for MySQL. Try 8M, 16M, 32M, 64M and 128M ...

    Related issue: 1905104.

  • If you use the Token module, you may experience WSOD because your server runs out of memory. You can fix this by using the Token Tweaks module and reducing the depth limit for the token tree UI.
  • Drupal 6: Views Bulk Operations (VBO) version 1.16 (or newer) requires Views Send 6.x-1.0-rc1.

Similar modules

You may want to try also:

Some pieces of code were inspired by Simplenews module.

How can you get involved?

Maintainers & Sponsors

  • Maintainer: hansfn (Hans Fredrik Nordhaug).
  • Module author of original Drupal 6 version: Claudiu Cristea.
  • The Drupal 6 version of this module was sponsored by Webikon.