Jump to:
| Project: | Views Mail |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I use a view that selects Node->Title as the name to be used and Content->Email (a CCK field) as the email address. This works. However, when I try to use Content->Name (another CCK field associated with the same content type), it breaks with the error
"Either the recipient or one of the additional e-mail fields you have selected does not contain a valid e-mail address."
I did a bit of debugging and discovered the following. The name and address fields as reported by the Views Mail module were
node_data_field_name_field_name_value
node_data_field_email_field_email_value
but in the result returned by views we had
node_data_field_name_field_name_value
node_data_field_name_field_email_value <--- note the 'name_field' bit
Looking at the query generated by views for the view that I'm using, it indeed has an '... AS node_data_field_name_field_email_value' so this might be a problem with views rather than tge Views Mail module, but I don't know the internals of views well enough to be able to say.
Incidentally, reversing the name and email fields in the view results in
node_data_field_email_field_email_value
node_data_field_email_field_name_value
which of course yields the opposite problem (the email address now is found but the name is not).
Comments
#1
Has anyone had any luck with this as I'm getting the same.
Mine is actually 1 level more complicated. If my filtering does filter some nodes out, then I get the above error.
If my filtering does NOT filter anything and returns ALL nodes, then I can set everything else in the following steps and do send the mass mail.
Any hints?
#2
Pssssst...
http://drupal.org/project/views_send
views_mail saved my butt at one point, and so I'm grateful for the efforts of the maintainer, but I believe it's been usurped by views_send, which seems to handle the situation more elegantly (views_bulk_operations and tokens)
Hopefully this helps! :)
#3
Check http://drupal.org/node/1485818 . Some changes in code is needed