warning: Creating default object from empty value in /home/frenssen/domains/frenssen.be/public_html/modules/taxonomy/taxonomy.pages.inc on line 33.

Sending HTML email in Drupal

Fri, 11/18/2011 - 19:19 | 10 comments

By default Drupal sends out all its emails in plain text, but there are some good modules available that make it easy to send out HTML mails. The two most popular ones are HTML Mail and Mime Mail. Both can achieve similar results, but this tutorial will explain how to do it with HTML Mail.

I'm working on a website that required an easy way to associate locations with a content type. It should be possible to first select a Province from a dropdown list, and then choose from a list of the towns in that province.

The use case: a multilingual Drupal 7 site, with each language having a different node to serve as front page. Each of the nodes have the same URL alias "home". Setting the homepage to the "home" URL does not work, since the Path module is returning the first match it finds, causing the wrong translation to be shown for all but one language.

The solution is in the i18n_variables module which is a part of the Internationalization module. This module allows to customize the front page variable for every language separately.