HOWTO: Send email acknowledgement to addresses in CCK Email fields
How do I: When a new node is created by an anonymous visitor, how do I trigger an email to be sent to the email address stored in a CCK Email field ?
Scenario: Continuing with the scenario in HOWTO: Auto-create a cryptic URL Path, when an anonymous user creates a new node and puts their email address in a CCK Email field, I want to automatically send an acknowledgment to the email addresses stored in one or more email fields.
Groups:
Login to post comments

Ical feed
need something similar
Hi,
Did you find some solution for this issue? I need something similar... Unable to find anything useful around...
Hope you would have some way to go about it. Awaiting reply.
Thanks,
Tanya
Don't know any module with
Don't know any module with that functionality but it'd be relavent easy to do a simple message using hook_nodeapi in a module
<?phpfunction modulename_nodeapi($op,$node, etc [see api.drupal.org search hook_nodeapi for exect format) {
switch($op) {
case 'insert':
if (empty($node->uid)) drupal_mail();
break;
}
}
?>
again, see api for the syntax of drupal_mail
email field would be something like $node->field_email[0]['value']; depending what ya name the field
Not yet
No I haven't, @hefox's reply not withstanding.
Rules module
I've found this to be quite useful. It's basically a vastly improved version of Actions+Triggers.
http://drupal.org/project/rules
Hi looking for the same, and
Hi looking for the same, and yes may be rules can help. But can somebody explain a rule to import with this functionality question?
See: http://drupal.org/node/626124 for my support issue in rules.
Thanks a lot in advance!
Greetings,
Martijn