Two Laptop Bag
The moose likes Other JSE/JEE APIs and the fly likes Solution to SMTP / Transport Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Solution to SMTP / Transport Authentication" Watch "Solution to SMTP / Transport Authentication" New topic
Author

Solution to SMTP / Transport Authentication

san jan
Greenhorn

Joined: Sep 26, 2000
Posts: 24
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
 
Threads others viewed
Exception in sending a mail
Need help with a JavaMail problem
SendFailedException with SMTP authentication
WebLogic Security - Problems whle calling weblogic custom Authentication
Authenticator Class
MyEclipse, The Clear Choice