Jason Lea,
Thank you. It solved the problem.
Regards,
Veeru
-----Original Message-----
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:19 AM
To: James Users List
Subject: Re: javax.mail.SendFailedException: 530 Authentication Required
I think you need this property
props.put("mail.smtp.auth", "true");
Veerabhadra Rao wrote:
>Hi Guys,
>
>I am using James 2.1.3
>I am trying to send mail using Java Mail API with simple SMTP
>authentication.
>
>I made the following changes to the James - config.xml
>1) Disabled the maillet with RemoteIPNotInNetwork tag
>2) set <authRequired> to true
>3) set <verifyIdentity> to true
>
>The relevant code:
>...
> props = new Properties();
> props.put ( "mail.transport.protocol", "SMTP" );
> props.put("mail.smtp.host", myhost);
>
> Authenticator auth = new PopupAuthenticator();
> Session session = Session.getInstance(props, auth); ...
>
> I have defined the inner class called PopupAuthenticator
>
> public class PopupAuthenticator extends Authenticator {
> public PasswordAuthentication getPasswordAuthentication() {
> return new PasswordAuthentication(myuser, mypass);
> }
> }
>When I send to a local account everything is ok. If I send to an
>external account, I get an Exception:
>javax.mail.SendFailedException: Sending failed;
> nested exception is:
> javax.mail.SendFailedException: 530 Authentication Required
>
>Can anybody help me solving this problem or suggest what went wrong.
>
>Thanks
>Veeru
>
>
>
>
>
--
Jason Lea
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]