Configuring a reply e-mail

Our imaginary conference organizers have requested that we send an acknowledgement of registration to all speakers who register via our Webform. Luckily, Webform has a built-in facility for us to easily do so.

Getting ready

We were busy admiring our handiwork on the View tab. Let's now click on the Webform tab to return to the components overview page.

How to do it...

To configure an automatic e-mail we need to click on the E-mails subtab that is just below the Webform tab.The first e-mail configuration screen enables us to specify the intended recipient of the e-mail:

  1. We're setting up an e-mail to be sent to the person registering on our form, so we will select Email address from the drop-down list next to the Component value: entry and click on Add.
  2. On the Edit e-mail settings page we will leave most of the defaults as they are. We will alter the standard e-mail template by selecting Custom Template under the E-MAIL TEMPLATE heading and changing the template to look like this:
    How to do it...
  3. After we've checked that we have the token names correctly set up we can save our custom e-mail by clicking the Save e-mail settings button at the bottom of the page.

There's more...

We could, if needed, configure another automatic e-mail to be sent to one of the conference organizers upon each successful submission. One obvious change we would need for our first e-mail is the recipient address under E-mail to address. For completeness we could also change the e-mail sender address under E-mail from address to be that of the person registering.

A close look at the e-mail configuration page shows us that we can customize every aspect of the e-mails that get automatically generated. We may even specify only those components whose values are required in the e-mail. By default, all components will be included.

A Drupal contributed module that is very useful is the MIME Mail module (http://drupal.org/project/mimemail). With this module installed and active, all e-mails sent from our site are sent in HTML format and can be styled as per our current site theme, can contain embedded images, and may also have attachments. See the project home page for installation details.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset