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
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

SomebodySysop - April 23, 2009 - 18:20
Status:active» won't fix

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

patchak - April 23, 2009 - 22:37

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

SomebodySysop - April 24, 2009 - 02:08

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

patchak - April 25, 2009 - 18:30

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

SomebodySysop - May 16, 2009 - 04:59
Assigned to:Anonymous» SomebodySysop
Status:won't fix» needs review

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

patchak - May 19, 2009 - 17:26

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

SomebodySysop - May 19, 2009 - 18:17

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

patchak - May 28, 2009 - 12:00

After replacing the module's code, this works perfectly thanks a lot!!
Patchak

#9

SomebodySysop - May 31, 2009 - 07:15
Status:needs review» fixed

#10

System Message - June 14, 2009 - 07:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.