users@glassfish.java.net

JavaMail Session using SMTP Authentication

From: <forums_at_java.net>
Date: Sun, 5 Jun 2011 09:11:36 -0500 (CDT)

What properties do I need to add the JavaMail Session properties for
GlassFish to allow TLS authentication?

These are the properties I have set:

  * mail.smtp.starttls.enable=true
  * mail.smtp.auth=true
  * mail.smtp.user=****_at_gmail.com
  * mail.smtp.password=*****
  * mail.smtp.port=587

My Username/password are ignored though, and I just get a : "SEVERE:
com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication
Required." Exception.

I cannot see how smtp authentication will work with GlassFish, as normally
with a mail session you need to pass a authentication object with your
credentials populated. Is it even possible?


--
[Message sent by forum member 'smilon']
View Post: http://forums.java.net/node/809562