aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes New to Java Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "New to Java Mail" Watch "New to Java Mail" New topic
Author

New to Java Mail

Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
I am asked to use Java Mail by my manager.I am new to use this.

The application is having form having workflow,which needs series of approvals or rejections by the various superiors.The form goes to immediate superior upon submission and flows through mailing system to the next concerned person(Based on approval/rejection).But for the approval the form should be available in the mail inbox for approval.


All the information is updated in the database and a view is also available to the staff accessing the application.


Can any one give me an idea to start with?

Thanks in advance


Srini
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
It sounds like there is a hierarcy of people that will be concerned with the mail and from what I understand this is stored in the database.

So it looks like a simple case of finding the sender's superior and constructing a message to that person.

What do you need help with?
Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
I am interested to know how to implement this using Java Mail system.I have not done any project with Java Mail.

I need to start from some where and I need some guidance how to begin with and what are the reference books or any needed resorces information.

I also would like to know any sample project available any where to take as a guidance or reference and customize it to suite my needs.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

JavaMail is pretty simple, so I wouldn't bother looking for reference books. There is a tutorial avaliable at Sun which takes you through the basics. So long as you are familiar with SMTP, IMAP & POP3 (if you are not - google for the RFCs), the rest is covered by the tutorial.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
I user SAMS Teach Yourself J2ee in 21 days for my reference for JavaMail.

I am using JavaMail to construct messages and then send them through SMTP servers, and then to read the POP3 inboxes on the server. From what I understand, the SMTP, POP and IMAP servers can also be written in Java but I've found that over kill.

I'm not quite sure what you are looking for. There are good tutorials on the sun website and you can download all the extra stuff that you'll need from there.
Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
Thanks Rachell for sharing your experience and it really helped me to beginwith.

I will also buy the SAMs book as advised by you and go through the sun web site.

Have a nice day
Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
Thanks Paul.I will do that and I feel very happy that my friends are here to pull out of any situation.

I really felt very happy for this quick response

Have a nice day
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to Java Mail