Sending HTML Emails from Drupal Webform

HTML-emails-drupal

The Webform module is one of the most popular modules in Drupal.

Webform is relied upon for everything, from contact forms, to donations to event registrations.

By default, Webform sends emails in plain text. In this tutorial, we’re going to show you how to send Webform emails in plain text, which allows you choose different layouts or designs.

media_1386859816684.png
  • Go to Configuration > Mime Mail.
  • You can choose Full HTML under the “E-mail format” setting.
media_1386859771575.png

Now it’s time to setup your webform.

  • Find your webform.
  • Click the Webform tab and then click E-mails.
  • Click Add.
  • Enter the email addresses you want to send webform results to.
media_1386859674331.png
  • Scroll down to the E-mail template area.
  • Check the “Send e-mail as HTML” box.
  • Click Save e-mail settings and the template box should now show HTML:
media_1386860400793.png
  • Check the results of your new HTML email:
media_1386860307093.png

Author

  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Subscribe
Notify of
8 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Cluemate
Cluemate
10 years ago

its very useful………….

Hiraman Patil
Hiraman Patil
10 years ago

Good tutorial….Thanks

Rimu
Rimu
9 years ago

Don’t forget to turn on the CSS compressor module that comes with mimemail, otherwise your CSS won’t be applied to HTML elements in Gmail.

Sergey Chernetsky
Sergey Chernetsky
9 years ago

Thanks! That’s just what I need!

OnengLar
OnengLar
8 years ago

Thanks! Helpful)

SCK
SCK
7 years ago

You also have to go to /admin/config/content/webform and enable HTML mail system.

Nick
7 years ago
Reply to  SCK

Thanks for the note, SCK! It’s appreciated! 🙂

Jay McDonald
Jay McDonald
7 years ago
Reply to  Nick Savov

You guys need to update the post to include this. I banged my head against this for over an hour trying to get it to work before I saw this.

8
0
Would love your thoughts, please comment.x
()
x