I was going to send an e-mail to all the speakers that submitted a session on my website today.

After sending a test run to a few selected speakers, we've noticed that the Bulk Speaker Contact view is sending multiple e-mails to the same speaker.

If a talk has 3 speakers, the first speaker will be listed 3 times in the view and he will receives all 3 e-mails.

Anyone with a suggestion on how to fix that? I am currently using [node:author:mail] for the recipient e-mail address.

Should I be using something different?

Attached is an example of what I am seeing for one of my talks.

Comments

chrisguindon’s picture

Issue summary: View changes
chrisguindon’s picture

I did some research on this and it seems that there is more than one problem.

First off, the view_send module only works with global tokens like [user:mail], [node:author:mail]. I was not able to use any of the [views-send-xxx] tokens.
https://drupal.org/node/390482

Also on my end, I don't see the list of available tokens. It's possible that I was using the wrong format for the [views-send-xxx] tokens but it's hard to guess when the list of token is not available. With this said, this is probably an issue we need to open against view_send.

My work around was to create a view with 'users' for the base table instead of 'node'. This allowed me to use the [user:mail] token.

The [user:mail] token doesn't work with the Sessions: Bulk Speaker Contact view since it's using 'node' for the base table.

japerry’s picture

Lets take a look at what PNWDS did for their site, I believe it got rid of the bulk speaker contacts and used a VBO operation.

Probably linked to the message module request in the COD queue.

  • japerry committed 66f92d6 on 7.x-1.x
    Issue #2135125 by japerry: Stopgap measure, use VBO to send emails (...

  • japerry committed 66f92d6 on 7.x-2.x
    Issue #2135125 by japerry: Stopgap measure, use VBO to send emails (...

  • japerry committed 66f92d6 on 7.x-1.x
    Issue #2135125 by japerry: Stopgap measure, use VBO to send emails (...