javamail pop Store SBC problem

W

webguynow

I'm trying to send mail, but get Store to authenticate.
I'm getting the following error,
java.net.ConnectException: Connection timed out: connect

and I've used Javamail previously but not with this host/Server.
Is there something unique about SBC/Yahoo
~~~ snippet: ~~~~~~~~~
String host = "smtp.sbcglobal.yahoo.com";
....
store.connect(host, user, pass);
~~~ end of snippet: ~~~~~~~~

also, should I be able to telnet to these:
pop.sbcglobal.yahoo.com ( failed )
smtp.sbcglobal.yahoo.com
TIA for your help, and suggestions to resolve this issue.
 
W

webguynow

just a few additional observations:
I can ping either pop/smtp .sbcglobal.yahoo.com
but telnet fails on either.

I had seen this used:
store.connect(host, user, pass)
even on javamail programs, that send mail, so I have used it.
But always get:
ConnectException: Connection timed out: connect

A new version of my program does not use store.connect() but uses
transport.connect() with the same 3 parameters. But I get:
AuthenticationFailedException which seems completely ridiculous.
I've double checked these login values.

I'm using these lines to set up the Properties file that is passed as a
parameter when I do getSession()
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth","true");

I've tried through both DSL modem and dial-up with same results.
And I've noted the domains for my user and host are slightly different
sbcglobal.net vs sbcglobal.yahoo.com

Also note use of @ in user name - would it be problem ?
(e-mail address removed)

Also note my transport.connect(host, user, pass) seems to be OK.
AuthenticationFailedException and thus SendFailedException
are thrown by
trans.send(message);
Again, TIA for anyone who can shed light on this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top