Multi-line text with variables - need carriage returns

Post Reply
FrankT
Newbie
Posts: 19
Joined: Tue Jul 30, 2024 7:20 pm

Multi-line text with variables - need carriage returns

Post by FrankT »

I am defining a multi-line text with variables for the body of an email. I want to list the selected variables on separate lines of the email body.
How to i include/use carriage returns or line feeds?

This is how it looks in the setup

Flow Name: [Job.FailFlow]
Job Name: [Job.Name]
Failure Message: [Job.FailMessage]
Job Fail date: [Job.FailTime:Format="MM/dd/yyyy",TimeZone="UTC"]

But when i receive the email, it is one long line. I want it to look like above in the body of the email

Thank you for your help :D
jan_suhr
Advanced member
Posts: 687
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Multi-line text with variables - need carriage returns

Post by jan_suhr »

Format as HTML for the email. And in the HTML template for the whole mail message you can have CSS and everything.
Then in the body, you set your variable that you created like:
<p>[Job.PrivateData:Key='your example']</p>

The variable can be what ever, not just a PrivateData, the idea is that you structure it as you like and it will be added to the rest of the HTMl template.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
FrankT
Newbie
Posts: 19
Joined: Tue Jul 30, 2024 7:20 pm

Re: Multi-line text with variables - need carriage returns

Post by FrankT »

Thanks this is what i needed!

One more question, I am having trouble embedding an image in my email template, like the way the default does.

The image is located in the same directory as my template, but in the email, image cannot be displayed.

this is the html i am using: <img src="cid:D:\Switch_HTML_Templates\Switch.png">

Do you have any ideas what i am doing wrong?

Thanks
jan_suhr
Advanced member
Posts: 687
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Multi-line text with variables - need carriage returns

Post by jan_suhr »

It has to be stored on a web server with a proper URL for the path to the image.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Post Reply