HOWTO: Send email acknowledgement to addresses in CCK Email fields

ebrittwebb's picture

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

need something similar

tan85 - Mon, 2009-08-10 00:16

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

hefox - Mon, 2009-08-10 01:45

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

<?php
function 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

ebrittwebb's picture
ebrittwebb - Mon, 2009-08-10 03:22

No I haven't, @hefox's reply not withstanding.


Rules module

rares - Fri, 2009-09-18 21:50

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

Summit - Sat, 2009-11-07 11:44

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