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
5 REPLIES
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?
Six 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.

 
Twelve Stars

Re: Want to display table format in email body