How would I send a confirmation email to the email address entered in a Contact Us form created with the Webform module?
This functionality is available out of the box with Webform.
- On the webform node page, click on the "Webform" tab
- From the webform tab, click on the "E-mails" tab
- Click on the "Component value" radio button and select the component of the webform that captures the email address.
- Click on the "Add" button
- On the next page, you can set the Subject, From Address, From Name, and E-mail contents.
Step1: On the webform node page, click on the "Webform" tab
Step2: Click on the "E-mails" tab
Step3: Click on the "Component value" radio button and select the component of the webform select the email address component (the field the submitter will use to add his email address.
Step4: Select custom under E-mail subject and in the custom field write thank you for your submission.
Step5: Select custom under E-mail from address and use appropriate email like [email protected]
Step6: Step5: Select custom under E-mail from name and use appropriate name like the name of the company or website
Now select custom template under E-mail template and in field below add your message like
Thank you for submitting your message. You will be contacted should a suitable asap. Please do not respond to this email as this is an automated response.
Step:7 Click on the save button
There is a module available for this purpose; Webform Confirm Email Address
webform_confirm_email is a simple addon module for the webform module.
If you define an email in webform (eg. mydomain.net/node/9999/webform/emails) this email/these emails will be send immediately when the user clicked the webform submit button.
Even without this module, we can send confirmation email to users. Important thing to note here is while creating the email component, we have to select Email as webform's Type. Go to the Email section of the webform. From there you can select the the email component as 'to'. Then add from, subject and template of the email to be sent.