Submitted by Visitor (not verified) on Mon, 12/07/2009 - 19:09.
Below is the code I have entered. It will send the email to admin that someone has submitted the form, but I cannot get the module to actually send out the confirmation module to the person submitting the form.
Any help would be greatly appreciated!
I am using Drupal 6.
Thanks!
<?php $email_address = $form_state['values']['submitted_tree']['email_address']; $name = $form_state['values']['submitted_tree'['your_name'];
$to = $email_address; $from = variable_get('site_mail', '');
// Use this method to load the confirmation message from the webform itself //$body = drupal_html_to_text($node->webform['confirmation']);
// Use this method to define a custom confirmation message
Hello! My name is Eric Weik. I am a computer scientist, photographer, musician, and occasional blogger. New Rivers Digital is my software consulting business. I am dedicated to using open source software and open data standards for Web development and applications integration. In particular, I am an ardent Drupal fan and specialize in Drupal module development, theming, and data architecture integration.
Reply to comment
#1 Confirmation email not sending
Submitted by Visitor (not verified) on Mon, 12/07/2009 - 19:09.
Below is the code I have entered. It will send the email to admin that someone has submitted the form, but I cannot get the module to actually send out the confirmation module to the person submitting the form.
Any help would be greatly appreciated!
I am using Drupal 6.
Thanks!
<?php$email_address = $form_state['values']['submitted_tree']['email_address'];
$name = $form_state['values']['submitted_tree'['your_name']; $to = $email_address;
$from = variable_get('site_mail', ''); // Use this method to load the confirmation message from the webform itself
//$body = drupal_html_to_text($node->webform['confirmation']);
// Use this method to define a custom confirmation message
$body = "Dear $name,
Thanks for your interest in our site.
Talk to you soon,
;The Team
"
function
webform_extra_mail($key, &$message, $params) {$message['subject'] = "Thanks for contacting us!";
$message['body'] = $params['body'];
} $message = drupal_mail('webform_extra', 'reply', $to, language_default(), array('body' => $body), $from, TRUE);
?>
Reply
About
Hello! My name is Eric Weik. I am a computer scientist, photographer, musician, and occasional blogger. New Rivers Digital is my software consulting business. I am dedicated to using open source software and open data standards for Web development and applications integration. In particular, I am an ardent Drupal fan and specialize in Drupal module development, theming, and data architecture integration.
Contact Details
Lancaster, VA 22503
Content Tags
Abstract B&W Celestial Clouds Drupal 6 Drupal Recipes Drupal Sites Estuary Etsy Government Grasses HDR Long Exposure Macro New Rivers Digital Orton Photoblog Photo Expedition Photoset Renderblog RGB Sketchbook Snow Storm Structure Synth Sunflow Sunset Theming Webform.module Wide Angle Zen Zen ThemingRecent comments
Popular content
Today's:
All time:
Activity Stream
Sun, 01/29/2012 - 22:31
Mon, 01/16/2012 - 10:43
Fri, 01/06/2012 - 07:54
Powered by Drupal & Genesis | Valid XHTML 1.0 Strict |
RSS Feed
© 2010 New Rivers Digital | PO Box 784 | Lancaster, Virginia 22503 | +1-804-577-8526 | Contact Form