For sending mails if you have Authentication problems, probably one of the below settings may be untouched. 1) setting "mail.smtp.auth" property to "true" 2) using Session.getDefaultInstance(props, myauth)--where myauth is javax.mail.Authenticator instance. 3) using transport.sendMessage(..) instead of transport.send()
I didnot check for authentication while connecting --transport.connect(host,username,password). Instead i tried authenticating while getting session -- step 2 above and transport.connect(). Even that should work. rgds, Santosh
subject: Solution to SMTP / Transport Authentication