Posted by yaron24 on October 17, 2008 at 10:04pm
1 follower
Jump to:
| Project: | Rules |
| Version: | 6.x-1.0-beta3 |
| Component: | User Interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I need to send an email to a list of addresses that are generated by a php code (the rule is when someone creates a child node all it's sibling author's get an email)
I can't do it with execute php code action because i can't send mail with a php snippet
And I can't do it with sending mail to arbitrary address action.
Is it possible to do this somehow?
Maybe i can generate the email list in a php snippet and use php to print it on the recipient field in arbitrary address action?
Or is this a feature request?
Thanks
Comments
#1
I've done this with execute php code
<?php
/* code to generate addresses goes into $to */
$to = "test@example, shuki@exmpaple.com";
$settings = array();
$settings['to'] = $to;
$settings['subject'] = "email subject";
$settings['message'] = "message body";
rules_action_mail($settings);
?>
and it works.
closing this issue, but other suggestions are welcomed