I've setup a entry wiithn resin.conf as follows

   <resource jndi-name="mail/MailSession" type="javax.mail.Session">
  <init>
   <mail.store.protocol>imap</mail.store.protocol>
   <mail.transport.protocol>smtp</mail.transport.protocol>
   <mail.imap.host>somedomain.com</mail.imap.host>
   <mail.pop3.host>somedomain.com</mail.pop3.host>
   <mail.smtp.host>somedomain.com</mail.smtp.host>
   <mail.smtp.password>somepassword</mail.smtp.password>
            <mail.smtp.user>someuser</mail.smtp.user>
            <mail.smtp.auth>true</mail.smtp.auth>
   </init>
   </resource>

However, I'm getting javax.mail.AuthenticationFailedException when trying to
send the message, looks like I cant use JNDI to pass the username & password
because it requires some Authenticator object?

thanks
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to