In creating a webform node, you have the option of setting some email information (ie one email address who receives all submissions to that webform node). In addition to this, there is the option to set an email component in the webform itself (so that the user sees an email field where he/she can enter an email, which may be different for different submissions of the same webform node).

My question is, are both of these emails supposed to receive an email upon submission? Currently in my webform, the email set in the node creation DOES receive an email, but the email that the user enters (as a form component) into the particular instance of the form does NOT receive a copy of the submission email.

Could someone clarify this for me? Thanks

Comments

davemybes’s picture

By default, the email field you add does not receive an email, just the one you specify further down in the webform. However, I believe that you can select the added email field as the one that receives the email, if you want to, but not both at the same time.

alimc29’s picture

Thanks for the quick response!

That would be enough - it's more that I want the user to be able to enter an email that will receive a receipt of types of what they submitted.

Do you have any ideas on how I may be able to proceed to reference the email component (as entered by the user) in the Mail Settings further down?

I see there are dropdown options for Email From Name and Email From Address that reference the form components, but I'm not sure how to reference them for the Email To section - I tried to just use a value with the matching field name, as it looks like the email from is doing, but the email is not being sent through that

(ex: my component is called "email_1" and I entered "email_1" (minus ") for the To address, though that does not appear to be sending)

davemybes’s picture

I just checked out that part of webform again and it can't be done using just webform alone. The only way that it might work is if you create a custom module that uses hook_mail_alter. Unfortunately I don't have any code for you to do this, you're going to have try it yourself. This kind of thing was discussed here, before.

budda’s picture

When editing the form components - the email field options has a "CC" checkbox. Which will copy the email submission to the person who filled out the form.

quicksketch’s picture

Status: Active » Closed (fixed)
druvision’s picture

Version: 5.x-1.4 » 5.x-1.8
Status: Closed (fixed) » Active

Webform still sends blank email bodies.
See detailed description here: http://drupal.org/node/215137

druvision’s picture

Version: 5.x-1.8 » 5.x-1.4
Status: Active » Closed (fixed)

Wrong issue. I should have added this comment to http://drupal.org/node/155743