File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes TOMCAT and e-mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "TOMCAT and e-mail " Watch "TOMCAT and e-mail " New topic

TOMCAT and e-mail

Will Thomas

Joined: Jul 02, 2003
Posts: 2
Is there a way to set up Tomcat to be a mail server? I have been rifling through the documentation and have not found anything other than a jsp-based web mail capability. I'm looking for the ability to set up an account in outlook, and have Tomcat send and recieve e-mails for that account. Thank you for any help you may provide.

Will Thomas<br />Software Engineer
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

In order to send mail, you will need acces to an SMTP server. To receive, you need a POP or IMAP server. Tomcat can serve as neither of these.
What you can do is to have your web app send mail through the SMTP server, or retrieve mail from the POP/IMAP server, using the JavaMail API.

[Asking smart questions] [About Bear] [Books by Bear]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

If you feel brave, you can check out James
I agree. Here's the link:
subject: TOMCAT and e-mail
It's not a secret anymore!