aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes HTML Format Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "HTML Format Mail" Watch "HTML Format Mail" New topic
Author

HTML Format Mail

varun bihani
Ranch Hand

Joined: Aug 11, 2003
Posts: 96
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??


<a href="http://www.galaxyweblinks.com" target="_blank" rel="nofollow">www.galaxyweblinks.com</a><br /><a href="http://www.freechatcode.com" target="_blank" rel="nofollow">www.freechatcode.com</a><br /><a href="http://www.onlinefamilytreemaker.com" target="_blank" rel="nofollow">www.onlinefamilytreemaker.com</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61603
    
  67

Not even remotely related to JSP... moving to Other Java APIs.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
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?


Regards,<br />Ketan KC Chachad
varun bihani
Ranch Hand

Joined: Aug 11, 2003
Posts: 96
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

Joined: Nov 23, 2003
Posts: 76
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML Format Mail