Hello,

If the email field accepts multiple values (2+ emails), will Views Send mass mailing action send the message to all values in the email field OR just the first one in the list?

About the UI - the "Field used for recipient's name" and "Field used for recipient's E-mail" drop down menus look pretty scary for your average user (see attachment). Is there a way to hide all info appearing inside parenthesis?

This is a great looking module!

CommentFileSizeAuthor
Field used for recipient's E-mail.png64.8 KBbisonbleu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dshields’s picture

The way Views Send works now, when the field contains values for email address, an error message instructs you Choose other field to act as recipient's E-mail or narrow the selection to a subset containing only valid addresses.

Multiple email addresses for each contact would be extremely helpful when using Views Send to contact various clients. Has anyone found a way to achieve this functionality?

strands’s picture

I've been looking to find a way to do this for days now on D7 and no luck. It seems the question has been asked for a long time... The exact scenarios is:

I have a view tabulating a list of applications and their associated contacts. Often there are multiple contacts for a single application so the latter is a multi-value email field. We regularly need to send the same email to ALL contacts of ALL Applications. It should be possible to have all contacts for each application in the "TO" field of the email (rather than sending a separate email to each one) so that each of them knows the email has also been sent to the others and not just to themselves.

Does anyone know of any other way of accomplishing this? With this feature Drupal is quaranteed to be selected fro this project but without it I'm afraid ...

hansfn’s picture

Assigned: Unassigned » hansfn
Category: support » feature

Hm, I understand the use case and I don't think it's very much work, but I just happen to be very busy right now. I'll try take a look later this week and post my findings. If I forget, send me a reminder.

strands’s picture

Great, thanks Hans.

hansfn’s picture

Hm, I just realized that if I should make a quick patch, I need to know which version of Views you are using (and if you are using Drupal 6 or 7)?

strands’s picture

Drupal 7
Views 7.x-3.5

hansfn’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Fixed

Fixed in commit 2004623 (for Drupal 7). Wait for the regenerated dev release or apply the patch manually.

I have tested with an email field that excepts multiple values, and it works - one message is sent to all addresses in the field.

strands’s picture

My first quick check did not work as it keeps looping back to the view page with the error message "Please select at least one item" - even though I repeatedly select at least one item.

Will check further on a different install over the weekend.

hansfn’s picture

Just for the record, any problems with "Please select at least one item" is not related to the change in commit 2004623. Whenever I get a "Please select at least one item" error it disappears after clearing the cache or just viewing some other pages before returning to the view, but some people just don't get it to work - see #1905104: Cannot proceed to confirmation page due to error "Please select at least one item".

strands’s picture

I can confirm that this works on a clean site. There are a few minor problems around tokens (only the first email address seems to be available) but emails are sent as expected without problem.

Many thanks, Hans, for the patch and the quick turnaround.

hansfn’s picture

Status: Fixed » Closed (fixed)

Thx for testing/confirming.

The token problems will be addressed in #1937548: Use rendered fields. (The fix in that issue will probably modify the changes in this issue, but multiple addresses will continue to work.)

hansfn’s picture

Issue summary: View changes

changed the first question.