Want to display table format in email body

Highlighted
Five Stars ami
Five Stars

Want to display table format in email body

Dear Users,
I want to display the content , in table format in en email body ,ex:-
My code is


in tjavaflex:-


tsendemail i am passing :


Output i am getting in email body using above code is 


This dosen't look good, i want this output to look in table format



It should look presentable , something like above.
Any help will be appreciated, i think here   <tr> <td>  tags we will have to use but i am not familier with them .
Help if anyone knows it
Thanks
Community Manager

Re: Want to display table format in email body

Hi  amit2676
I don't have experiences in HTML, I think you can learn the tutorials/course on internet. 
Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Five Stars ami
Five Stars

Re: Want to display table format in email body

ok , thanks Smiley Happy
Any one can help , who has face such situation?
Five Stars ami
Five Stars

Re: Want to display table format in email body

can someone help please?
Nine Stars

Re: Want to display table format in email body

This would be one way to achieve what you have been trying for -

Job Layout -

enter image description here

Now, for your use case you would get the data from files - I had manipulated the data to be retrieved from tFixedFlowInput. Once you have the data retrieved you would need to perform few html formatting through tJavaFlex like below -

enter image description here

Once done, stored the entire content in a context variable and refer the same in your tSendMail - > "Message".

Also, make the following change to your tSendMail component to use the HTML formats - enter image description here

 

Output -

enter image description here

Note: there are many formatting features which could be used through HTML tags, please use them as needed as per your use case - scenario.

 
Forteen Stars

Re: Want to display table format in email body

check this link may be usefulll?

https://community.talend.com/t5/Design-and-Development/how-to-create-a-HTML-Table-in-Email-with-inpu...

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download