HOWTO: Send email acknowledgement to addresses in CCK Email fields

Events happening in the community are now at Drupal community events on www.drupal.org.
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.

Comments

need something similar

tan85's picture

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's picture

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

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

Erik Britt-Webb
drupal@ebrittwebb.com

Rules module

rares's picture

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's picture

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

Boston

Group categories

More Specifically

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: