Connectiong SMTP server

I am writing e-mails from a java application connected to the net via a dial up PPP connection to my ISP. I am using JSE 5.0, javamail 1.4 and jaf 1.1. I am getting the following error message:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.juno.com, port: 25;

nested exception is:

java.net.ConnectException: Connection timed out: connect

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)

at javax.mail.Service.connect(Service.java:275)

at javax.mail.Service.connect(Service.java:156)

at javax.mail.Service.connect(Service.java:105)

Two theories-- I should install the smpt software from sun, or

perhaps I am entering user or password incorrectly. I appreciate your attention.

[861 byte] By [sandyg9000a] at [2007-10-3 9:16:19]
# 1
http://java.sun.com/products/javamail/FAQ.html#condebug
bshannona at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
I followed the advice in the FAQ and attempted to connect via telnet to the smtp server recieved a failure notification. How can I get around this.
sandyg9000a at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Do you have a firewall on your computer? Check that.Oh, and of course make sure you're using the correct host nameand port number. I get "connection refused" when I try to connectto smtp.juno.com on port 25. Perhaps their SMTP server requiresan SSL connection?
bshannona at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
I checked the SMTP address and it is correct. I am not using a firewall. Is it possible I need to turn on authentication.
sandyg9000a at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
How do the SMPT services provided by Sun fit into this process?
sandyg9000a at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6

> I checked the SMTP address and it is correct. I am

> not using a firewall. Is it possible I need to turn

> on authentication.

Do you have another mailer that's correctly configured to use

this server, or do you have instructions from the ISP for how to

configure mailers? If so, that should tell you what you need to

know.

bshannona at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7

> How do the SMPT services provided by Sun fit into

> this process?

I'm not sure what you're referring to.

Sun certainly offers mail server products that support SMTP.

If you want to run your own mail server instead of using the

mail server at your ISP, you could use one of Sun's products.

Sun does not offer SMTP services in the same way that

ISPs do.

bshannona at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8

The files I am referring to are part of the distribution for javamail 1.4. They are located in the lib directory of that distribution and are .jar files for smtp as well as imap, and pop3. The way I installed java mail was to move the mail jar to src\lib\ext. I did not move the lib file from the distribution. Could this be wrong?

sandyg9000a at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 9
No, that's correct, as explained in NOTES.txt included with JavaMail.You read that file, right?
bshannona at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 10
you're right that does explain the distribution issue. So from the fact that I was not able to connect to the SMTP server I think my next course of action is to figure out how to get authorization to work. Thank you for your assistance.
sandyg9000a at 2007-7-15 4:29:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...