Dears,
I have workflow whcih has runing and in the last step emailed. but the output like this:
How can I change html tags or design the tags and table for body of this mail?
In addition I want to add the specefic xlsx file which has generate by this flow as a attchamnet of mail automatically.
To feed the Send Email node with HTML you need to use the Table to HTML String to convert the table to html. To attach the Excel file, write the Excel file and pass the file path to the Send Email node.
Then configure the node with these flow variables and execute.
Hi Armin,
Thank you for your response. The point is that the mail which has recived is not well design, So I want to modify the html tags before send. is there any idea?
The Table to HTML String node converts a table to HTML very well. I have tested the output:
If you want to manipulate the html further, you can use the String Manipulation node (or the variable variant) afterwards or you can export the table as an HTML file with the Table to HTML node and modify it externally then read the file with the File Reader node, concatenate the rows with the GroupBy node (with no delimiter) and convert it to a flow variable and pass it to the Send Email node.
I suspect the rendering of the table is more down to the mail client you use and how it chooses to render unstyled tables.
You could maybe look at doing some XML manipulation to add some inline styling to the HTML table that is generated.
If you could give an idea of what you want the table to look like if I find some time I can look at adding some pre-defined styles or custom styling options to the node.
I assume you are talking about things like border, background etc rather than number formatting?
A new tick box in the Table To HTML String node which allows the addition of this basic styling. It’s false by default so at to be backwards compatible.
Dear Sam, @swebb,
It would be grate solution to modify the HTML tags in table to HTML string node.
as I mentioned in my post, to modify the html/border/color in body of email, we need to have access to HTML.
I used last version of knime and update the library which you mentioned above, Im going to check the result…
Dear Sam, @swebb,
I have test and result is fine. is it possible to get access to html tags by another tab in the mentioned node? I think it lets us to have more felexibility in our E-mails.