• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Dynamic contents in email application

 
arpit patel
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an Email application, which send out an Email, after every transaction. The record of Transaction has to be mailed to the customer(In a tabular format). I am not sure, that how do i go about it.

How do i add the table to EMAIL body dynamically. Text message can be added to the table by using some method, but what about dynamic contents.
Thanks




[BSouther: Removed urgent from post.]
[ February 16, 2008: Message edited by: Ben Souther ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

How do i add the table to EMAIL body dynamically. Text message can be added to the table by using some method, but what about dynamic contents.

I don't understand what "the table" is - an HTML table?

The term "dynamic content" also could mean many things. The contents of an email can be generated at the very moment you're composing it, just before sending it out. Is that what you mean?
 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi arpit,

You need to follow the following example:

http://www.rgagnon.com/javadetails/java-0504.html
Never forget the

message.setContent(multipart);

line in your code.
Its the base.
Regards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!