I would like to send an automated email to the business user of the daily failed messages in the table structured format.
Can anyone please help me out solution to convert xmlstring or document list which contains the list of failed messages into table structure format and i need to bring that table into body of email.
I have tried the following below steps,
1.created adapter to get the failed messages from database.the output will be in documentlist
2.Then converted document list to xml string and attached in the body of pub.client.smtp
To be user friendly i want it to present in a table format not in xml string.
Thanks for your reply,but i want to generate data from the database on daily basis and according to that, i want rows and columns to be present in table structure in the body of mail.
If i do with html ,its all predefined how can i edit the rows and column according to my data.I am glad to know if you could provide me with an example.
What type of object you want to show in the email body stringTable? It doesn’t make sense unless you use some HTML formatting as a table format you can display as expected with content-type text/html.