Need help with template.print statement

kchorny
Tera Guru

I want to do something seemingly very simple, yet I'm struggling with it.  I want to put a few lines of text in a mail script, so that I can insert the script into notifications and if something changes, I only have to change it in one place rather than 50 or 60 places.

Here's what I want the results to be in Arial font, 12px:

Thank you!

ACME Support

Email: support@acme.com

Phone: 800-555-5555

 

do not want the spaces between the lines, but this editor is not letting me remove them.

Please help me construct a template.print statement to accomplish this goal.  I have tried multiple things but am not getting what I'm after.

Thanks in advance.

Karla

1 ACCEPTED SOLUTION

ccajohnson
Kilo Sage

template.print("<p style='font-family: Arial, sans-serif; font-size: 12px;'>Thank you!<br/>ACME Support<br/>Email: support@acme.com<br/>Phone: 800-555-5555</p>");

View solution in original post

5 REPLIES 5

ccajohnson
Kilo Sage

template.print("<p style='font-family: Arial, sans-serif; font-size: 12px;'>Thank you!<br/>ACME Support<br/>Email: support@acme.com<br/>Phone: 800-555-5555</p>");

Thank you! Only one issue - in my notification template, I've chosen Arial 12 as the font and size, but in the resulting email, the font from the script doesn't match the rest of the notification.  Do you know why that is?

Nevermind, I just changed it to 16px in the statement, which matches 12 in the HTML editor. 😕  Thank you for your quick help!

Jon Barnes
Kilo Sage

template.print('<p style="font-family: arial; font-size: 12px">Thank you!<br />ACME Support<br />Email: support@acme.com<br />Phone: 800-555-5555</p>');