424,054 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,054 IT Pros & Developers. It's quick & easy.

Sending Mail from Java

rsrinivasan
100+
P: 221
Hi,

I am Sending mail from java. When I run the program I hava Following error..

DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.hotpop.com", port 25, isSSL false
220 smtp-1.hotpop.com ESMTP Postfix
DEBUG SMTP: connected to host "smtp.hotpop.com", port: 25

EHLO st-164
250-smtp-1.hotpop.com
250-PIPELINING
250-SIZE 3000000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250 8BITMIME
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "SIZE", arg "3000000"
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
334 VXNlcm5hbWU6
bWFpbHRvdmFzYW4=
334 UGFzc3dvcmQ6
cGFzczEyMw==


535 Error: authentication failed
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at j2src.SendMailUsingAuthentication.postMail(SendMai lUsingAuthentication.java:82)
at j2src.SendMailUsingAuthentication.main(SendMailUsi ngAuthentication.java:47)
Exception in thread "main"

How to solve this problem?


Please reply me...

Thanks,

Srinivasan r.
May 11 '07 #1
Share this Question
Share on Google+
1 Reply


rsrinivasan
100+
P: 221
Hi,

Reply me anybody know the reason. why it sends authendication error?

Thanks,
Srinivasan r.
May 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.