From: Eric R. <eri...@gm...> - 2006-11-22 00:52:04
|
On 11/21/06, Eric Rizzo <eri...@gm...> wrote: > I've just started using the MailService that is packaged as part of > JettyPlus (5.1.4). Looking at the configuration and the code in > MailService, it appears to set up an Authenticator for > username/password authentication. However, when I try to send a > message to my SMTP server, the Authenticator is not being called. As a > result, the SMTP server is rejecting my send requests with a "Relay > access denied" message (it has not seen my app authenticate yet, so > this is a reasonable response). This turned out to be a configuration problem. JavaMail's SMTP transport assumes no authentication, so I have to set the property mail.smtp.auth to "true" in the MailService configuration to get JavaMail to invoke the Authenticator. What sucks is that this option is buried on a JavaDoc page, not for a class but for the package - who reads package JavaDos anyway?! Sorry for the noise, Eric |