• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

HTML Format Mail

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to send mail in HTML format.
I want to write a class file for that(not jsp).
But am not getting how to implement it.Can u give me some reference materials where I can look for the implementation part.
Its possible through JavaMail I know that but i dont know how??
 
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not even remotely related to JSP... moving to Other Java APIs.
bear
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to send mail in HTML format.
I want to write a class file for that(not jsp).


Do you mean that you want to write an editor that will generate a mail body in HTML format? Or do you want to know how a mail in HTML format can be sent using JavaMail APIs? Also what do you want the class to do?
 
varun bihani
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ketan Chachad:

Do you mean that you want to write an editor that will generate a mail body in HTML format? Or do you want to know how a mail in HTML format can be sent using JavaMail APIs? Also what do you want the class to do?


Well not exactly an editor. I want to know how a mail in HTML format can be sent using JavaMail APIs. Actually I want to make class file becoz i want to send emails everyday automatically by Cron and Cron doesnt process jsp pages (i guess becoz i have tried) ie why I need class file that will be run everyday at particular time and extract the required emails from my database and send them emails in html format.
Is this clear??
Thank You very much for corporating..
 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay here is the link to the JavaMail API docs. Hope this is helpful to you
http://java.sun.com/products/javamail/javadocs/index.html
I have a ready class with me with which I can send mails in any format, including attachments. And if it is sending the mail in HTML format then the mail body (that you will be picking up from the database) has to be written with the necessary HTML tags. Although the code of the class is not what you want ..... I can give you a clue, just check for setting the format of the mail you are sending. Hope this information is enough for you, any further doubts be free to ask me I am willing to help.
 
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic