• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML Format Mail

 
varun bihani
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??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not even remotely related to JSP... moving to Other Java APIs.
bear
 
Ketan KC Chachad
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic