
Signature
Daniel Dyer
http://www.dandyer.co.uk
then can you please tell me how to receive mails through SMTP.
I have a mail server that supports only SMTP, and i want to access and
read my mails through the JAVAMAIL API, how can i do this?
Alun Harford - 10 Feb 2006 11:43 GMT
> then can you please tell me how to receive mails through SMTP.
> I have a mail server that supports only SMTP, and i want to access and
> read my mails through the JAVAMAIL API, how can i do this?
You can only send mail with SMTP.
You cannot recieve mail SMTP.
Alun Harford
Nigel Wade - 13 Feb 2006 12:01 GMT
>> then can you please tell me how to receive mails through SMTP.
>> I have a mail server that supports only SMTP, and i want to access and
>> read my mails through the JAVAMAIL API, how can i do this?
>
> You can only send mail with SMTP.
> You cannot recieve mail SMTP.
SMTP is used to both send and receive e-mail. If you are sending mail to another
SMTP process, it is receiving it. If you want to receive email you normally use
an SMTP process to do so.
You cannot, however, read your email using SMTP. For JavaMail you need an IMAP
or POP server which has access to the mailbox in which the SMTP process stores
the mail.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Roedy Green - 13 Feb 2006 14:25 GMT
> If you want to receive email you normally use
>an SMTP process to do so.
It might be clearer to say that as:
"If you want to receive email from the outside world to forward to
your clients in your role as an email server, you normally use
an SMTP process to do so."

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
cipher - 14 Feb 2006 04:18 GMT
Thanks to Gordon Beaton, Daniel Dyer, Alun Harford, Tim, Roedy Green,
Chris Smith and Nigel Wade for providing the replies. I persuaded my
Mail admin to
enable the POP3 protocol on the server. So currently struggling with it
:-).
Thanks a lot guyz..
Gordon Beaton - 10 Feb 2006 12:03 GMT
> then can you please tell me how to receive mails through SMTP. I
> have a mail server that supports only SMTP, and i want to access and
> read my mails through the JAVAMAIL API, how can i do this?
Your SMTP server will store the mail it receives into recipient
mailboxes somewhere in the filesystem.
Either you have a shell account on the server (so you can log in and
read your mail directly from the mailbox files), or the mailbox must
be made available through POP or IMAP or similar MAIL READING protocol
in order for you to access it.
If this mail server is "yours" (as you claim), then you get to decide
how to make the mailboxes available. If someone else maintains the
server, then you will have to convince him or her to configure the
server to allow you to read mail through a suitable protocol.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Tim Slattery - 10 Feb 2006 13:49 GMT
>then can you please tell me how to receive mails through SMTP.
>I have a mail server that supports only SMTP, and i want to access and
>read my mails through the JAVAMAIL API, how can i do this?
An SMTP server runs all the time and receives email from other
machines via Simple Mail Transfer Protocol whenever the other servers
want or need to send them. It doesn't store messages so that a client
program can attach to it and download them at its convenience, that's
what POP3 and IMAP are for.
--
Tim Slattery
Slattery_T@bls.gov
Roedy Green - 10 Feb 2006 21:51 GMT
>then can you please tell me how to receive mails through SMTP.
>I have a mail server that supports only SMTP, and i want to access and
>read my mails through the JAVAMAIL API, how can i do this?
see http://mindprod.com/jgloss/javamail.html
it uses POP3 or imap or is it mapi (I can never remember which is
which).
Read the tutorials. The Javadoc is hopeless for orientation.
Also read the source code for the Resend class in the bulk emailer. It
is heavily commented and does most of the things you are likely to
want to do.
http://mindprod.com/products1.html#BULK

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Chris Smith - 11 Feb 2006 22:14 GMT
> it uses POP3 or imap or is it mapi (I can never remember which is
> which).
It's IMAP.
MAPI is a (now obsolete) API for client-side code to interact with the
message store in Microsoft Outlook. It is not a network protocol.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation