dev@glassfish.java.net

Re: Authentification to an smtp sever

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Tue, 11 Dec 2007 09:45:39 -0800

NewJavaLearner wrote:
> Hi,
> I've trued to add properties to the glassfish java mail ressource (username
> and passwd) but i got the same exception
> com.sun.mail.smtp.SMTPSendFailedException: 530 <myadress_at_domain.com>... MAIL
> requires AUTH, the same exception without those properties.
> Do you see the problem?

Not without more details.

What properties did you add?

Are you using the "smtp" or the "smtps" transport?

If you enable session debugging, what does the protocol trace (in the log file)
show?