Page 1 of 1

Email BIF - text formatting / font selection

Posted: Fri Aug 30, 2024 7:56 am
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?

Re: Email BIF - text formatting / font selection

Posted: Fri Aug 30, 2024 10:00 am
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...

Re: Email BIF - text formatting / font selection

Posted: Fri Aug 30, 2024 11:59 pm
by adale
Brendan,
OK, thanks for that. I figured there might be a way I was missing.