• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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 ]
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic