Want to display table format in email body

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
Highlighted
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.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download