• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding Dynamic contents in email application

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic