KNVB HK
asked on
Java mail and MS SMTP server authentication problem
I have put "mail.smtp.auth" properties "true" in my program.
I am using IIS4 's SMTP server to send email.
I can send email successfully, when I disable the authentication.
Here are my debug messages:
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP SENT: AUTH LOGIN
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
DEBUG SMTP SENT: dHNhbmdfY3M=
DEBUG SMTP RCVD: 334 UGFzc3dvcmQ6
DEBUG SMTP SENT: YWJjMTIz
DEBUG SMTP RCVD: 235 Authentication successful
DEBUG: getProvider() returning javax.mail.Provider[TRANSP ORT,smtp,c om.sun.mai l.smtp.SMT PTransport ,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
It shows everything ok, however, I got the following exception from my application:
javax.mail.SendFailedExcep tion: Sending failed;
nested exception is:
javax.mail.AuthenticationF ailedExcep tion
Would you tell me why?
I am using IIS4 's SMTP server to send email.
I can send email successfully, when I disable the authentication.
Here are my debug messages:
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP SENT: AUTH LOGIN
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
DEBUG SMTP SENT: dHNhbmdfY3M=
DEBUG SMTP RCVD: 334 UGFzc3dvcmQ6
DEBUG SMTP SENT: YWJjMTIz
DEBUG SMTP RCVD: 235 Authentication successful
DEBUG: getProvider() returning javax.mail.Provider[TRANSP
DEBUG SMTP: useEhlo true, useAuth true
It shows everything ok, however, I got the following exception from my application:
javax.mail.SendFailedExcep
nested exception is:
javax.mail.AuthenticationF
Would you tell me why?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER