Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Solution to SMTP / Transport Authentication  RSS feed

san jan
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!