• 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

Sending a HTML mail

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I want to send a HTML mail to the user using Java mail if the registration succevolly was made. As you know the method setContent has two attributes subject and content. The attribute content can be a String of an Object type.

The old method that I used to set the content is that I set all my HTML code in a String content. For example if I would like to send a HTML newsletter then it takes me a lot of time to do that.

Is there maybe a method to get the whole HTML code en set it in my content as an Object, String of StringBuffer???

This is my setContent methode


Thank you,
Abu Romaysa
[ June 12, 2005: Message edited by: Azz Romaysa ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic