Solved

How to create a hyperlink in a the ReportMailer?

  • 28 October 2020
  • 2 replies
  • 59 views

Userlevel 4
Badge +11

How can I insert a hyperlink into the body parameter of the TSFReportMailer? 

A simple example is the reference to our terms and conditions. 

Actual situation
You can download the terms and conditions by clicking the following link: https://niverplast.com/terms-and-conditions-metaalunie2019

Desired situation
All our quotations, all orders placed with us and all contracts concluded with us are subject to the METAALUNIE-CONDITIONS

icon

Best answer by Dennis van Leeuwen 29 October 2020, 09:50

View original

This topic has been closed for comments

2 replies

Userlevel 7
Badge +23

Hi Dennis,

This is possible with the TSFReport_mailer as it can use HTML. You can use the 'a’ tag for this. The body should look like the following in your case:

All our quotations, all orders placed with us and all contracts concluded with us are subject to the <a href="https://niverplast.com/terms-and-conditions-metaalunie2019">METAALUNIE-CONDITIONS</a>.

You can try out how it looks here: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_test

Note: Be sure to set the HTML parameter to True. This might impact the rest of your email so test it beforehand. For more information on the TSFReportMailer, see here: https://docs.thinkwisesoftware.com/docs/kb/report_mailer.html

Hope this helps you out!

Kind regards,
Mark Jongeling

Userlevel 4
Badge +11

Hi Mark, 

Thanks for the quick response. Using the 'a’ tag in the default that fills the body parameter seems to work. By changing it I also found another solution.  

Because I first made the mistake of putting the a'tag in the multiline instead of the default code template, I realized that the solution is even easier. I’ve changed the email template description field to HTML and put the hyperlink in the position it should be. Changed the TSFReportMailer html parameter value default to “yes” and voilà it worked perfect. 

 

Changed Multiline to a domain with the user interface HTML control