I have a process that goes thru a folder and creates a list with the file names; then I need to email the list.
Everything is working well, except that when I send the email with the list, the text all runs together, instead of adding line breaks.
But when I display the list in a message, it does add line breaks.
How can I format my email to display the files in a readable way?
How it shows:
File1 File2 File 3
What I want:
File1
File2
File3
Thanks!
@MichaelAnnis , it might be a configuration issues, maybe? Because this didn't work for me either.
I think is really weird that the list shows fine on a message and not on the email, but alas...
But thank you for showing me the clipboard function.
This worked for me!
It is a bit of an overkill, BUT I already need to loop thru the items to divide my files into 2 separate lists, so, not too bad. Thank you!! @VJR
This is is very odd, because I do just this, and I just have the list variable as a single line item and all are listed on their own line.
Try this:
Set Clipboard Text %Files%
In the Email, use %ClipboardText% instead of %Files%.
Good luck.
Hi @aperea2539
I do not know if there is an easier way.
I had the same issue so I followed the below steps:
- Created a new variable (MyFileList)
- Read each current Item from the list of files returned in the Files variable by the "Get Files in Folder" action
- Add a loop to add a html <BR> tag after every file name
- The above set variable is as below
- In the 'Body' parameter of "Send Email" action use %MyFileList%
- This gave me an output with every file name in a new line
Make sure to enable Body is Html in the Send Email action.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2