Results 1 to 3 of 3

Thread: Registration - Activation email template [SOLVED]

  1. #1

    Default Registration - Activation email template [SOLVED]

    Hi,
    is there a way to send registration activation email via html template?

    Best regards!
    Web design agency - EDsolution.si Izdelava spletnih strani

  2. #2

    Default Re: Registration - Activation email template

    OK i've changed the evel in dca for activation "reg_text" ($GLOBALS['TL_DCA']['tl_module']['fields']['reg_text'] = array).

    Before
    Code:
    	'eval'          => array('style'=>'height:120px;', 'decodeEntities'=>true, 'alwaysSave'=>true),
    Now
    Code:
    	'eval'          => array('rte'=>'tinyNews', 'decodeEntities'=>true, 'alwaysSave'=>true),
    Now i get the tinyMCE in activation message but there is a following problem:
    When the message is sent to email to html code isn't "converted" to html.

    If I create html template in tinyMCE for example:

    Code:
    <table style="background-color: #f0f; width: 100%;">
    <tbody>
    <tr>
    <td>##link##</td>
    <td>##domain##</td>
    </tr>
    </tbody>
    </table>
    In the email I recive code as above and not the email in "template" style.

    There is something need to be done in ModuleRegistration.php (I suppose) but just can't figure it out what.


    p.s. I've moved this thread from Using contao viewtopic.php?f=6&t=3942 so admin can delete thread there.
    Web design agency - EDsolution.si Izdelava spletnih strani

  3. #3

    Default Re: Registration - Activation email template

    OK I've figure it out. In the ModuleRegistration.php I've changed all $objEmail->text to $objEmail->html and it works like charm.

    So for everyone who wants to send activation email as template you must:
    Change evel for reg_text and change text for html in ModuleRegistration.php
    Web design agency - EDsolution.si Izdelava spletnih strani

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •