I have a webform which takes a simple survey with three options and collects some demographic data. The admin copy of the results e-mail is processed correctly except the Subject line doesn't have the [title] filled in however the copy to user bounces because the To: field is also wrong and erroneously has their survey choice in the field. See headers below.
User message
To: St. Kilda v Collingwood
Subject: Form submission from: [title]
X-PHP-Script: www.afana.com/drupal5/index.php for 69.181.194.242
Return-Path: aussiefb@afana.com
Errors-To: aussiefb@afana.com
From: "Australian Football Association of North America"
<aussiefb@afana.com>
Content-Type: multipart/alternative;
charset=utf-8;
boundary="996273d8286c68deb7698049e84c7178"
MIME-Version: 1.0
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal Webform (PHP/5.2.6)
Sender: aussiefb@afana.com
Reply-To: "Australian Football Association of North America"
<aussiefb@afana.com>
Message-Id: <E1JsjK5-0003BZ-Hc@web2.idleserv.net>
Date: Sun, 04 May 2008 13:52:33 -0500
Admin copy
Return-path: <aussiefb@afana.com>
Envelope-to: aussiefb@afana.com
Delivery-date: Sun, 04 May 2008 13:52:35 -0500
Received: from afana by web2.idleserv.net with local-bsmtp (Exim 4.68)
(envelope-from <aussiefb@afana.com>)
id 1JsjK6-0003Bo-Ak
for aussiefb@afana.com; Sun, 04 May 2008 13:52:35 -0500
Received: from nobody by web2.idleserv.net with local (Exim 4.68)
(envelope-from <aussiefb@afana.com>)
id 1JsjK5-0003Bj-TB
for aussiefb@afana.com; Sun, 04 May 2008 13:52:34 -0500
To: aussiefb@afana.com
Subject: Form submission from: [title]
X-PHP-Script: www.afana.com/drupal5/index.php for 69.181.194.242
Errors-To: aussiefb@afana.com
From: "Australian Football Association of North America"
<aussiefb@afana.com>
Content-Type: multipart/alternative;
charset=utf-8;
boundary="f2e7295060765b1552da629b8e839c89"
MIME-Version: 1.0
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal Webform (PHP/5.2.6)
Reply-To: "Australian Football Association of North America"
<aussiefb@afana.com>
Message-Id: <E1JsjK5-0003Bj-TB@web2.idleserv.net>
Date: Sun, 04 May 2008 13:52:33 -0500
I am on Drupal 5.7/PHP 5.2.6/webform v 1.113.2.70.2.38 2008/04/03
Comments
Comment #1
rkdesantos commentedCould this be related to: http://drupal.org/node/249580 ?
I'd also note that I upgraded from "Survey". Is it possible that something didn't get converted corrected in the data base?
Comment #2
rkdesantos commentedAlso see:
http://drupal.org/node/258695
http://drupal.org/node/258506
Comment #3
quicksketchIt looks like you might be using the Conditional e-mail recipients incorrectly. Could you describe the configuration of the component you're using as a conditional recipient? The "key" of that field (if it's a select component) needs to be an e-mail address. Right now it looks like it's "St. Kilda v Collingwood".
Comment #4
rkdesantos commentedIn the webform in question here are the conditional fields (see attachment):
All the defaults are chosen.
Comment #5
quicksketchIf I'm understanding correctly, you're sending out 2 e-mails. One to the administrator using the normal "E-mail to address". The one being sent to the user as a reciept though must be setup as a Conditional recipient correct? Could you provide the configuration for that field as well (node/x/components/edit/x)?
Comment #6
rkdesantos commentedWhat I attached above is all the "conditional" fields I see. The admin goes to the "E-mail to addresss" as you noted. Below that are the three fields for the conditional e-mail. Not sure what else there could be. I've attached the actual page at the link you suggested.
Comment #7
quicksketchSigh. This still isn't what I need to help you. I need the configuration of the component that is being used to add a conditional recipient. Not the display of the finished form. Go to node/x/components, click edit on the component that is being used as a conditional e-mail recipient, then describe or screenshot the configuration there.
Comment #8
rkdesantos commentedOK, I hope this is what you want. The problem with the initial instruction was that "node/x/components/edit/x" confused me. First x=node number therefore I used the node number for the second x, too. What you meant was the component number for the second one. Anyway, see attached.
Comment #9
quicksketchAccording to you configuration, it looks like you have the wrong component selected as a conditional e-mail recipient. The "Your e-mail address" component should have the "E-mail a submission copy" checkbox ticked, but it does not. Instead, it looks like you have the "Match" component enabled as a conditional e-mail recipient, so when Webform tries to send out an e-mail, it uses their selected value as the e-mail address.
Second, you need to update the [title] token in your subject line to %title. There is an out-standing bug where it was not being replaced, but it has been fixed in the latest version and will be included in the 2.1 version.
Comment #10
rkdesantos commentedThanks,,, fixing the conditional e-mail recipient (now that I understand what was going on) cured that problem. However, the only place I could see to change the [title] to %title was by changing the E-mail subject under Webform mail settings --> E-mail subject and using a "custom setting". However if I use %title there it is ignored, too. So where is that changed? or do I need to patch the module?
Comment #11
quicksketchIt's been fixed in the latest version of Webform, but I haven't yet made a new release. You can download the development version if you need the token replacement to work immediate: http://drupal.org/node/214890
I'd probably just type in the title for the time being. I'll roll a new release in the coming weeks.
Comment #12
domesticat commentedJust to toss in a vote, so you know others are interested. I'd very much like to get my hands on a dev version of the 6.x module that has the token replacement patch. That'd be very handy for me.
Comment #13
quicksketchYou can always download the latest version of Webform from the release page (click "View all releases" from the project page). http://drupal.org/node/7404/release
Or checkout a copy from CVS. http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/webform
Comment #14
quicksketchI'm changing this to a support request, since I think it's a combination of usability errors and bugs that have already been fixed. That gets it out of my bug queue and I can release 2.1 :)
Comment #15
rkdesantos commentedFor my part, my issues here have been resolved so this may be closed.
Comment #16
quicksketchThanks for the followup rkdesantos :)