Closed (won't fix)
Project:
Actions
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2007 at 11:05 UTC
Updated:
3 Feb 2013 at 19:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
fuzzy_texan commentedWould be good if it was possible to send to one or more role's too.
Comment #2
dayre commentedI needed this too and wrote an action function to send e-mails to one or more roles, you can also restrict it to certain node types. I think it would be a great idea if this attached function/patch could be added to the default actions.inc set.
Comment #3
HowyP commenteddayre, thanks for this snippet. It's a big help, just what I was looking for. I couldnt't get the action to work initially, I had to change the line
if (0 && drupal_mail('action_send_role_email', $recipient, $subject, $message, $from)) {to
if (drupal_mail('action_send_role_email', $recipient, $subject, $message, $from)) {Was there a reason for the
0 &&?Comment #4
darumaki commentedwhere/how do we save this action function ?
is this correct ?
name action_send_email anything added to it ? does it get saved as a module ? action_send_email.module ?
Comment #5
jvandyk commentedFor actions for Drupal 5, the action can be anywhere. You could put it in your own module if you wanted. The name does need to be unique, though, so action_send_email_to_role would be a nice name for it.
Comment #6
prunelle commentedI introduced the supplied code in the actions.inc file (under the function name: action_send_email_to_role. I've used it with the workflow module. It's working fine. But when the function is executed during the state change, I got the message, in the watchdog", that says "Unable to send ...." for each of the recipient.
What could make the call to "drupal_mail" fail ?
Does it actually work on Drupal 5 ?
Thanks for your answer.
Best regards.
Comment #7
optalgin commentedCan someone help to convert this to drupal 6.x
Thanks
Comment #8
v1nce commentedI updated the actions_email_role module to be compatible with Workflow and Actions versions 5.x-2.x.
http://drupal.org/node/244508
Comment #9
pomliane commentedThis version of Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.