value) pairs. * * $from * The configured sender address. * * $to * The recipient email address. * * $subject * The message subject line. * * $body * The formatted message body. * * $language * The language object for this message. * * $params * Any module-specific parameters. * * $template_name * The basename of the active template. * * $template_path * The relative path to the template directory. * * $template_url * The absolute URL to the template directory. * * $theme * The name of the Email theme used to hold template files. If the * [5]Echo module is enabled this theme will also be used to * transform the message body into a fully-themed webpage. * * $theme_path * The relative path to the selected Email theme directory. * * $theme_url * The absolute URL to the selected Email theme directory. * * $debug * TRUE to add some useful debugging info to the bottom of the * message. * * Other modules may also add or modify theme variables by implementing a * MODULENAME_preprocess_htmlmail(&$variables) [6]hook function. * * References * * 1. http://drupal.org/project/htmlmail * 2. http://drupal.org/project/htmlmail * 3. http://api.drupal.org/api/drupal/includes--mail.inc/function/drupal_mail/7 * 4. http://api.drupal.org/api/drupal/includes--mail.inc/function/drupal_mail/7 * 5. http://drupal.org/project/echo * 6. http://api.drupal.org/api/drupal/modules--system--theme.api.php/function/hook_preprocess_HOOK/7 * * =========================================================== End instructions. */ $template_name = basename(__FILE__); $current_path = realpath(NULL); $current_len = strlen($current_path); $template_path = realpath(dirname(__FILE__)); if (!strncmp($template_path, $current_path, $current_len)) { $template_path = substr($template_path, $current_len + 1); } $template_url = url($template_path, array('absolute' => TRUE)); ?>

To customize this message:

  1. Visit admin/config/system/htmlmail and select a theme to hold your custom email template files.

  2. Visit admin/appearance to enable your selected theme.

  3. Edit your

    file.

  4. Copy

    to

  5. For module-specific customization, copy

    to

  6. For message-specific customization, copy

    to

  7. Edit the copied file.

  8. Send a test message to make sure your customizations worked.

  9. If you think your customizations would be of use to others, please contribute your file as a feature request in the issue queue.

The module sets the $params variable. For this message,

$params =