If you have a view that uses re-written results or re-written 'no results', then although the correct e-mail address is shown in the View results, the 'no results' result is NOT accepted and passed to the Views Send module and an error is reported when the e-mail is to be sent. Apparently the e-mail address is not correctly formatted, whether using the [email2_Token] or rewritten 'longhand' as "mailto:name@domain.com"

This also happens if you use 'Views' conditional to test whether an e-mail field is empty. What I am trying to do is to select and load two e-mail address fields so that if the first email_address_field [email1_token] is empty, the [email2_token] (Hidden) is used and re-written to substitute the [email_token1] address.

Whether this is tested with a conditional or by means of a simple test to re-write the field if it is found empty, the [email_token2] in the 'no result behaviour' or the conditional 'Otherwise, output this..' is not loaded or used by Views Send.

I have attached the View - the relevant view is: "District Mailing - Club Presidents Elect"

CommentFileSizeAuthor
#3 DGE_Mailshot_View.txt52.78 KBcebab54
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cebab54 created an issue. See original summary.

cebab54’s picture

Issue summary: View changes
cebab54’s picture

Issue summary: View changes
FileSize
52.78 KB
hansfn’s picture

Status: Active » Postponed (maintainer needs more info)

The current version of Views Send is 7.x-1.2, which I think fixes this issue. Please test and report back.

cebab54’s picture

Status: Postponed (maintainer needs more info) » Active

Yes it works with 7.1.2, but 7.1.2 is so much slower to load and send e-mails than 7.1.1

hansfn’s picture

Status: Active » Closed (outdated)

The only change between 7.1.1 and 7.1.2 that can effect the speed of Views Send is the fix for the problem you posted ...

cebab54’s picture

Actually, I have worked out that the speed of loading is being caused by loading 'General Tokens'. When I comment out this section in the Module, the v1.2 module loads as quickly as v1.1.

I would suggest that loading general Tokens should be an option in the Configuration of Views 1.2. Particularly as I prefer not to give Users with permission to use Views Send (we call Bulk e-mail) access to these tokens anyway. The reason being that access to the General Tokens causes a potential or real 'security risk' - unless the User is an Administrator. The 'user' tokens are a particular issue, because under data protection (UK Law) the tokens contain various bits of data that are designated as 'personal'.

I can of course continue to comment out the lines that load these 'additional' tokens for the time being.

hansfn’s picture

  1. If you think there is an issue with the handling of tokens, start a new issue.
  2. Just for the record: There is no difference between 7.x-1.1 and 7.x-1.2 when it comes to tokens (but I don't think you meant to say that).