Hi,
is there a way to send registration activation email via html template?
Best regards!
Printable View
Hi,
is there a way to send registration activation email via html template?
Best regards!
OK i've changed the evel in dca for activation "reg_text" ($GLOBALS['TL_DCA']['tl_module']['fields']['reg_text'] = array).
Before
NowCode:'eval' => array('style'=>'height:120px;', 'decodeEntities'=>true, 'alwaysSave'=>true),
Now i get the tinyMCE in activation message but there is a following problem:Code:'eval' => array('rte'=>'tinyNews', 'decodeEntities'=>true, 'alwaysSave'=>true),
When the message is sent to email to html code isn't "converted" to html.
If I create html template in tinyMCE for example:
In the email I recive code as above and not the email in "template" style.Code:<table style="background-color: #f0f; width: 100%;">
<tbody>
<tr>
<td>##link##</td>
<td>##domain##</td>
</tr>
</tbody>
</table>
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.
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