Best practice forum (Archived)

Custom welcome message

 
? ?
Custom welcome message
di ? ? - Friday, 5 February 2016, 01:22
 

Hi everybody,

Does somebody knows how to put pictures or logo into messages that totara sends? For example when a student is enrolled in a course? I know how to change the text but no how to do this.

Thanks in advance :-)

 

? ?
Re: Custom welcome message
di ? ? - Friday, 5 February 2016, 01:47
 

Hi Diego,

you could create an HTML-formatted message with a header in which you embed (i.e. link) your logo. If you want all messages having the same logo / header, you may have two choices: a) put the same HTML code directly in your messages every time you create a new message, or b) programmatically manipulate the message by inserting a header (and / or a footer)  read from a language file.

Example of HTML header:

<p></p><table style="width:100%;border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr style="height:37.05pt;"><td style="width:28.5pt;border:none;border-bottom:solid #e2303a 1.5pt;padding:0cm 5.4pt 0cm 5.4pt;height:37.05pt;" valign="top" width="38"><span style="font-size:10pt;font-family:Arial,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td><td style="width:76px;padding:0cm 0cm 0cm 0cm;height:37.05pt;" rowspan="2" valign="top"><img src="https://your.domain.here/theme/your_theme/email/logo.jpg" alt="LOGO" width="76" height="84" border="0" /></td><td style="border:none;border-bottom:solid #34e32a 1.5pt;padding:0cm 0cm 0cm 0cm;height:37.05pt;width:100%;"><p style="top:0px; margin-left:1cm;"><span style="font-size:16pt;font-family:Arial, sans-serif;">YOUR TITLE HERE</span></p></td><td style="width:7.8pt;padding:0cm 0cm 0cm 0cm;height:37.05pt;" width="10"></td></tr><tr style="height:6pt;"><td style="width:28.5pt;padding:0cm 5.4pt 0cm 5.4pt;height:6pt;" valign="top" width="38"></td><td style="padding:0cm 0cm 0cm 0cm;height:6pt;"></td><td style="width:7.8pt;padding:0cm 0cm 0cm 0cm;height:6pt;" width="10"></td></tr><tr><td style="width:28.5pt;padding:0cm 5.4pt 0cm 5.4pt;" valign="top" width="38"></td><td style="padding:0cm 5.4pt 0cm 5.4pt;" colspan="2" valign="top"><p style="margin-left:3px;margin-bottom:24px;margin-top:3px;">

Aldo

? ?
Re: Custom welcome message
di ? ? - Friday, 5 February 2016, 07:32
 

Thanks Aldo,

And isn't there another way that going text box by text box adding html to strings?

Thanks!