We've build a bolt-on module for Webform which allows form creators to build a separate email template which is sent to anybody who fills out the form. Form field values can be included in the response email template.
Is it worth releasing this as its own module, or combined in to webform.module?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | webform_autoresponse.zip | 11.63 KB | budda |
Comments
Comment #1
webstylemedia commentedHi!
Can you please share it here?
Btw. I need it for D6
Thanks.
Dmitry
Comment #2
chb commentedyes please release that, it would make sending response emails easier - currently you have to do that with custom php.
Comment #3
buddaJust fixing a small bug with webform components in fieldsets, then I'll post a zip here first. Didn't want to go littering the Drupal modules list with the module if it would be considered for merging with Webform project.
Currently the code is written for Drupal 5, but the module is reasonably small for porting.
Comment #4
quicksketchI intend on implementing e-mail templates into Webform, via this patch #277581: Send emails with a custom/templated body (and subject, to addresses and from addresses). However, my time to work on Webform's a little slim so it'll be a while yet before it actually gets implemented.
Comment #5
buddaAttached is the working module which adds auto response to any webforms.
Tested on 1.x and 2.x versions of the webform module for Drupal 5.x
Comment #6
that0n3guy commentedSad, no D6 ?
Comment #7
derekweldon commentedI like to hear about this. Unfortunately I have Drupal 6. But good work otherwise.
Derek
Comment #8
mattiasj commentedI am also very interested in this utility for Drupal 6.
Comment #9
druupydog commentedUsing Drupal 5.15
Module update status=Up to date
MySQL database=5.0.67
PHP=5.2.6
I have Webform 5.x-2.6 installed with Webform Response 5.x-1.0. I have a single field (email address) form.
When an email is submitted I get the following error:
warning: Invalid argument supplied for foreach() in /home/robinale/public_html/sites/all/modules/webform_autoresponse/webform_response.module on line 142.
E-mail Headers:
Array
(
[X-Mailer] => Drupal Webform (PHP/5.2.6)
)
To: sise@comcast.com
From: "Psychic Robin Alexis on MYSTIC Radio 1150 AM"
Subject: Form submission from: 2 Robin's Song - 2 FREE Chapters - Instant E-Book Download
E-mail Body:
Submitted on 02/20/2009 - 07:24
Submitted by anonymous user: [76.121.200.2]
Submitted values are:
Email: wert@gffd.cc
The results of this submission may be viewed at:
http://dietpure.com/node/34/submission/11$form_values are:
Array
(
[submitted] => Array
(
[1] => wert@gffd.cc
)
[details] => Array
(
[email_subject] => default
[email_from_name] => default
[email_from_address] => default
[nid] => 34
[sid] => 11
[is_new] => 1
)
[op] => Get 2 Chapters Now
[submit] => Get 2 Chapters Now
[form_id] => webform_client_form_34
[submitted_tree] => Array
(
[email] => wert@gffd.cc
)
)
$_SERVER is:
Array
(
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_LANGUAGE] => en-us
[HTTP_CONNECTION] => Keep-Alive
[CONTENT_TYPE] => multipart/form-data; boundary=---------------------------7d96d370210
[CONTENT_LENGTH] => 737
[HTTP_COOKIE] => SESSa84109148eac400ad604c2e89659b572=9b50c856cf8a80e28fdb3e099687b353
[HTTP_HOST] => dietpure.com
[HTTP_REFERER] => http://dietpure.com/
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_UA_CPU] => x86
[DOCUMENT_ROOT] => /home/robinale/public_html
[REMOTE_ADDR] => 76.121.200.2
[REMOTE_PORT] => 4057
[SERVER_ADDR] => 67.202.92.4
[SERVER_NAME] => dietpure.com
[SERVER_PORT] => 80
[REQUEST_URI] => /content/2-robins-song-2-free-chapters-instant-e-book-download
[REDIRECT_STATUS] => 200
[REDIRECT_URL] => /content/2-robins-song-2-free-chapters-instant-e-book-download
[SCRIPT_FILENAME] => /home/robinale/public_html/index.php
[QUERY_STRING] => q=content/2-robins-song-2-free-chapters-instant-e-book-download
[CUR_REQUEST_URI] => /index.php
[SCRIPT_NAME] => /index.php
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => LiteSpeed
[REQUEST_METHOD] => POST
[PATH] => /bin:/usr/bin
[PHP_SELF] => /index.php
[REQUEST_TIME] => 1235114690
)
$_POST is:
Array
(
[submitted] => Array
(
[email] => wert@gffd.cc
)
[details] => Array
(
[email_subject] => default
[email_from_name] => default
[email_from_address] => default
)
[form_id] => webform_client_form_34
[op] => Get 2 Chapters Now
)
My log files show TYPE webform_response with message "Error finding recipient email. Was an email recipient field chosen?"
webform_response apparently doesn't get the recipients emal address passed to it properly. Any suggestions?
Maybe I am not configuring it right? Does my form, which i use to collect the email address, need to be set up in a certain way. How is the users email address passed from the form to the webform_response script?
Thank you for your support - D
Comment #10
buddaSome recent changes in webform module broke the autoresponse code. I've got a working version, just need to zip it up again.
Comment #11
KrisBulman commentedIs there a D6 version of this code?
Comment #12
druupydog commentedThanks for your work on this module. The autoresponder is a great feature. Can't wait to try the update.
Comment #13
druupydog commentedbudda
Can you upload the fixed version of the autoresponse module now? I would like to get it working.
thank you for your support - D
Comment #14
hydrogen3 commentedAlso looking for the updated version.
Thanks!
Comment #15
Kendall Totten commentedI installed this module, and the email response field now shows up in my webform, however when I submit a form, the auto-reply is still the default "Submitted by.... blah blah" email.
Is there some setting that I need to switch over to disable the other response? Thanks.
-Kendall
Comment #16
TrickerTreater commentedStatus?
Comment #17
quicksketchThis is completed in the 3.x version of the module through the #277581: Send emails with a custom/templated body (and subject, to addresses and from addresses) patch.
Comment #19
ArthurC commentedHello, budda
Any chance you've ported this to Drupal 6?
Comment #20
avior commentedhave a look here http://drupal.org/node/323666
i didn't use it , but i can see that there is a code for doing that in drupal 6