HTML email template

Discussion in 'Customization & add-ons' started by david_landry, Nov 11, 2014.

  1. david_landry

    david_landry New Member

    Joined:
    Jul 7, 2013
    Messages:
    8
    Hi,

    Shariing my exchange with support since it could help other user. In order to have an HTML template that will automaticaly be used by aMember, you can do the following:

    For Email templates:

    edit file amember/library/Am/Mail/Template.php
    find method _parse and replace return $tpl->render($text);
    with
    return 'header html here' . $tpl->render($text) . 'footer html here';

    For newsletter:

    edit file amember/application/default/controllers/AdminEmailController.php
    find method batchSend
    and replace
    $body = $tpl->render($body);
    with
    $body = 'Heder html' . $tpl->render($body) . 'footer html';

    Hope this help!

Share This Page