I am setting up workflows and would like a particular Action to send an email to several addresses vs just one. I cannot easily create distribution lists on our email server so would like to do this in Drupal.
For example: I want several Junior Editors to be notified of a content submission but cannot create a JuniorEditor@company.com distribution list that has all those email addresses in it and the Recipient field in Actions only allows me to have one recipient email address.
I have to think this is a common problem but I am new to this and cannot find any information. I cannot believe that the way is to create multiple actions with similar functions and just different emails - for each address. Maybe a CCK multiple email form field?
Any advice appreciated.
Comments
=-=
have you tried email addresses separated by a comma?
How to get multiple emails in actions...
Yes, I have. As well as semicolons... Should that work?
Same problem
I have tried to do the same thing. Putting multiple email addresses in the Action's Recipient field does not work, no matter if each email address is separated by a comma, semi colon, space, or any other common separator.
It would be great if it was possible to enter comma separated email addresses.
What I have done for now is to setup a Gmail account with mail forwarding filters. So, I enter into the Action Recipient field just the email address of the Gmail account. When email is sent to that Gmail account, the filters will forward all incoming email to the multiple accounts I setup in the filters. In the Gmail filters I set the incoming filter for "From" set to "@" (you need to include the quotes in the filter spec in this case), and I enter one destination email address. I need to create a separate filter for each email address I want to forward email to.
What I would really like is if there was that the "send email" Action would optionally use the CCK so that multiple address could be specified there. Then it would be possible to have multiple, optional sets of email addresses -- in other words, for some actions use one set of email addresses, for another action use a different sent of email addresses.
subscribewould be great to
subscribe
would be great to be able to list multiple email addresses, plus other variations mentioned in other posts on this page.
The webform module allows multiple email addresses... so this has been done before.
Multiple addresses in actions
I also need an action to send multiple E-mails when triggered. If anyone has found a hack, please share. If this could be remedied in a new version, then please do so. PHP allows for multiple E-mails, so it seems doable.
Same Problem
I just tried to do this on a site I support and ran into the problem. AT first I thought it was me doing something wrong. It should be an easy fix in the code. I'll check into it in day or two when I get some spare cycles.
issues for this issue
You can see the Issues for this particular problem here...
5.x
http://drupal.org/node/284036
6.x
http://drupal.org/node/572190
You can add another advanced
You can add another advanced action 'Send Email' with another email address and assign that to a trigger along with 'Send e-mail on new post'.
Thanks A Lot
It is a good alternative that can be used..
It's very easy with Tokens module
First of... Hello! I'm new in drupal.
You have to install the token module and activate the token and token actions module.
Now you will have new actions and one of them is "Send email applying tokens". There you can use the commas to sepparate your different emails.
Thanks for the tip.. this
Thanks for the tip.. this actually help me :)
Yes, that worked for me too.
In fact, I was able to add an actual email address after a token, but not the other way around.
So this worked:
[site:mail], editor@example.comBut this bounced:
editor@example.com, [site:mail]Thanks for this post
I am using Drupal 5, and when I installed Token I could not see the action (Send email applying token). Probably this applies to Drupal 6 only. Is there any solution for this in Drupal 5. Appreciate any advice.
How to combine with Gmail
Hi, i want to use 3 emails and for backup send them to my gmail account. Any suggestion?