formatting - is there a way to add some spacing to cfmail type=text emails in Coldfusion when using variables only? -
i'm little in awe on how first cfmails looking.
problem is, i'm using variables both text , content , still have sort of spacing.
for example, if have:
<cfprocessingdirective suppresswhitespace="no"> <cfmail to="#local.user.email#" from="..." server="..." username="..." password="..." wraptext="80" subject="#tx_automailer_register_subject# - #local.user.comp#"> #tx_automailer_default_hello# #tx_automailer_register_info# #tx_automailer_register_iln#: #local.user.iln# #tx_firma#: #local.user.firma# #tx_ansprechpartner#: #local.user.ansprechpartner# #tx_adresse#: #local.user.adresse# #tx_plz#: #local.user.plz# #tx_ort#: #local.user.ort# ... the place looks nice cfc :-) in mail going bazooka.
question:
there way space this? have tried space according length of variables, not , i'm not keen on doing math this...
thanks help!
if you're set on plaintext email , confident recipient using fixed-width font, can use ljustify() align text , pad spaces.
left justifies characters in string of specified length.
#ljustify(tx_automailer_register_iln & ":",32)# #ljustify(local.user.iln,25)# #ljustify(tx_firma & ":",32)# #ljustify(local.user.firma,25)# #ljustify(tx_ansprechpartner & ":",32)# #ljustify(local.user.ansprechpartner,25)# #ljustify(tx_adresse & ":",32)# #ljustify(local.user.adresse,25)# #ljustify(tx_plz & ":",32)# #ljustify(local.user.plz,25)# #ljustify(tx_ort & ":",32)# #ljustify(local.user.ort,25)#
Comments
Post a Comment