*
The moose likes Java in General and the fly likes javamail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "javamail" Watch "javamail" New topic
Author

javamail

vamsiev
Greenhorn

Joined: Feb 28, 2000
Posts: 9
can i implement a complete web based mailing system using java
mail api
if yes how do i go about it
vamsi
Pawel Veselov
Ranch Hand

Joined: Jan 14, 1999
Posts: 165
Yes, you can.
This is going to be just a bundle of applications that can send and receive mail from your server, and it can be SMTP/POP-3 protocols.
You've asked too abstract question, actually

------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )

With best of best regards, Pawel S. Veselov ( aka Black Angel )
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
It can be done. How difficult it is depends on whether you need to implement the mail server (SMTP/POP3/IMAP) as well, or whether you just want to create a web-based mail reader/writer which talks to an existing mail system.
On the assumption that you are doing the simpler case, here's a rough recipe:
Ingredients:
A web browser
A working network or internet connection
A working SMTP server (for sending mail)
A working POP3 or IMAP server (for receiving mail)
A web server
Some way of running Java Servlets (either built in to the web server, or an extra program)
The Java Activation Framework (Glasgow) jar file
The Java Mail jar file
A JavaMail plugin for POP3 or IMAP (whichever you use)
Steps:
1. Install the jars in the classpath used by the servlet engine
2. Write a few tests to make sure that you understand JavaMail
3. Write one or more servlets to send/retrieve/store mail
4. Install the servlets and away you go.
Diagram:


But before you get too deep into this, make sure you check out all the java code repositories, as I'm sure many people have done this before.
[This message has been edited by Frank Carver (edited March 07, 2000).]


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
vamsiev
Greenhorn

Joined: Feb 28, 2000
Posts: 9

i donot intend to implement the mail server.
which server should i go in for?
i intend to use an apache server coz they support servlets is it also a mail server?
that is it a smtp/pop3 server?
do i need to manage database to store the users and their mails ?

Originally posted by Frank Carver:
[B]It can be done. How difficult it is depends on whether you need to implement the mail server (SMTP/POP3/IMAP) as well, or whether you just want to create a web-based mail reader/writer which talks to an existing mail system.
On the assumption that you are doing the simpler case, here's a rough recipe:
Ingredients:
A web browser
A working network or internet connection
A working SMTP server (for sending mail)
A working POP3 or IMAP server (for receiving mail)
A web server
Some way of running Java Servlets (either built in to the web server, or an extra program)
The Java Activation Framework (Glasgow) jar file
The Java Mail jar file
A JavaMail plugin for POP3 or IMAP (whichever you use)
Steps:
1. Install the jars in the classpath used by the servlet engine
2. Write a few tests to make sure that you understand JavaMail
3. Write one or more servlets to send/retrieve/store mail
4. Install the servlets and away you go.
Diagram:


But before you get too deep into this, make sure you check out all the java code repositories, as I'm sure many people have done this before.
[This message has been edited by Frank Carver (edited March 07, 2000).][/B]

vamsiev
Greenhorn

Joined: Feb 28, 2000
Posts: 9

i donot intend to implement the mail server.
which server should i go in for?
i intend to use an apache server coz they support servlets is it also a mail server?
that is it a smtp/pop3 server?
how much server space do i need for say apprx 100 users.
do i need to manage database to store the users and their mails ?
can u let me know of any other resources available
Originally posted by Pawel Veselov:
Yes, you can.
This is going to be just a bundle of applications that can send and receive mail from your server, and it can be SMTP/POP-3 protocols.
You've asked too abstract question, actually


Nelson David
Greenhorn

Joined: Oct 01, 2002
Posts: 13
Hi,all
I have configured IMail mail server, and I am sending mail to other users successfully, the problem is in receiving mail, my domain is: nelson.com , it is not registered though, I have created users in Imail server like : abc@nelson.com , david@nelson.com, but the mail didn't receive by any of the users, is it because i have not subscribed nelson.com or thier is another problem?
Is their a way i can receive mail from virtual domain like if my PC name is nelson.com or abc.com, so i can create user (in Immail server) and receive mail from either me@nelson/abc.com.
regards,
Nelson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javamail
 
Similar Threads
Cant use object from another class
WA #1.....word association
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?