Hi, great module here :)
I've successfully added my custom forward.tpl.php template in my custom theme. But I'm not able to use that template for the THANKYOU EMAIL. This one is just a white background with black text on it but would like to use my custom header/footer like in all my other emails (I'm using HTMLmail module for the rest of emails in my site wich is working great).

Do I have to use another template name? or ATM is not possible to do this?
Thanks in advance.

Comments

EndEd’s picture

Hi, I came up with a way to do it using hook_mail_alter().

If someone is interested:

/**
 * Implements hook_mail_alter().
 */
function MODULENAME_mail_alter(&$message) {
  if ($message['id'] == 'forward_forward_thankyou') {
    // Change header so we can insert markup.
    $message['headers']['Content-Type'] = 'text/html; charset=utf-8';

    // Retain message from configuration page.
    $msg_body = $message['params']['body'];

    // Change the body.
    $message['body'] = array();
    $message['body'][] = '<any markup here>' . $msg_body . '</any markup here>';
  }
}

Anyway, I think it's usefull to have a template also for this message :)

john.oltman’s picture

Status: Active » Closed (won't fix)