Add more then one email per row
patchak - April 23, 2009 - 14:14
| Project: | Views Mail |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | SomebodySysop |
| Status: | closed |
Jump to:
Description
Hey there, is it possible to add more than one email field to the view, so that for each row we actually more than one mail ?? I know we can't do it now, but you think it would be easy to implement?
Thanks

#1
Views mail keys on one email field per view. This field can contain only one email address. You can create a second field in the view that contains multiple email addresses, but views mail will only send to the single email address.
#2
Thanks for the answer, say I would want to add the ability to use multiple columns of emails with one email per field, what function should I look into? Any tips?
#3
If I understand you correctly, you want to be able to send to multiple e-mail addresses from one node. Correct? If so, the most efficient means of doing that in the view would be a primary email field followed by an additional emails field that could contain multiple email addresses.
This means we'd need to:
1. Identify the "additional emails" field in Views Mail.
2. Store the additional emails in the views_mail_scheduled table.
3. modify the send engine to send to these additional email addresses
4. modify the unsubscribe function to accept both the primary email and/or any email address from this additional emails field.
Off the top of my head, this is what I see in terms of modifying the code to accomodate something like this.
#4
Hey there, yeah, sounds great. My client has several emails fields with one mail per field (primary, second, etc) so I think for my needs it would be only th ability to add several fields. Of course for the usage of the whole community, would be nice to handle multiple emails per field too!
I'll get back to the client see if they really need it and we'll see how we move forward then!
thanks for looking at it,
Patchak
#5
Modified code committed to dev release.
On Views Mail configure screen, there is now an additional fieldset: Additional e-mail addresses. Here you select the fields which contain the additional e-mail addresses you wish to send the views mail mailing to.
Please let me know if this does the trick.
#6
I tested the new code but I get this error :
Fatal error: Call to undefined function views_mail_create_link() in /home/blogsurf/sites/intranet/includes/common.inc(1547) : eval()'d code on line 4
Is it possible this has something to do with the fact that I need the PHP code to actually see the link to send mail??
Patchak
#7
This error related to this issue: http://drupal.org/node/302674
Please post it there.
FYI, I downloaded and installed the current dev release. I use the views_mail "link" setting and do not see this error.
#8
After replacing the module's code, this works perfectly thanks a lot!!
Patchak
#9
#10
Automatically closed -- issue fixed for 2 weeks with no activity.