smtp with Authenticator??help
2 posts in topic
Flat View  Flat View

Posted By:   tibetrain_york
Posted On:   Tuesday, July 17, 2001 01:35 AM

when i test my programe,i got the wrong messages: 553 Authentication is required to send mail..,how to solve this problem?and does anybody has some source code to help me?thanx!

Re: smtp with Authenticator??__be solved

Posted By:   tibetrain_york  
Posted On:   Wednesday, July 25, 2001 10:53 PM

  i've solved this problem,as follow:

 construct one inner class,extends the Authenticator class and in it set this method :public PasswordAuthentication getPasswordAuthentication() {

String username, password;

return new PasswordAuthentication(username, password);
then in your main program,add :props.put("mail.smtp.auth","true");

then ,you will see your mail be sent out finely:)wish you luck

Re: smtp with Authenticator??help

Posted By:   Rajat_Jain  
Posted On:   Wednesday, July 18, 2001 02:12 AM

When i try to send mail thru my program using POP3 i get following error:

javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

This error occurs when the relay services of server are off. These services are generally kept off on servers to prevent spam mails.

The solution to this problem is authenticate the user in whose name mail going before sending mail.

I am not able to find the procedure of authentication before sending a mail. Help me!!!!!
About | Sitemap | Contact