Email BIF - text formatting / font selection

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Email BIF - text formatting / font selection

Post by adale »

We have utilized the Email BIF for quite some time, but now have an email message that we would like to add a bit of formatting of the text in the body. Specifically a column of data that is right adjusted.

A) is there any formatting intrinsic or tricks that can be utilized with the MAIL_ADD_TEXT ?

I can manipulate the string data to work the way we would like, provided the output or viewed font is a fixed character space font like Courier New.
B) Is there any way to specify the font with MAIL_ADD_TEXT, or other place in the Email BIF?
Arlyn Dale
Servias LLC
BrendanB
Posts: 134
Joined: Tue Nov 24, 2015 10:29 am

Re: Email BIF - text formatting / font selection

Post by BrendanB »

Arlyn,

many (but not all) mail clients can handle HTML rendering (which would allow selection of Font, as well as possibly the use of the table tags).

the trick for that is you need to use MAIL_SET_OPTION and ensure that content_type is set to 'text/html'

There are a number of HTML Email Builders -- i would recommend using one to create a 'template' of what you want to send that you can substitute various values into (eg. using %%row1.col1%% and then you can read the template and do a #templateString.ReplaceAll('%%row1.col1%%' #newvalue)

something like that...
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: Email BIF - text formatting / font selection

Post by adale »

Brendan,
OK, thanks for that. I figured there might be a way I was missing.
Arlyn Dale
Servias LLC
Post Reply