users@glassfish.java.net

GF V3.1 - Mail Resource with GMail

From: CasMeiron <casmeiron_at_gmail.com>
Date: Mon, 20 Sep 2010 14:28:26 -0300

Hi guys,

I've tried a lot of configurations but couldn't make it to work, follow my
mail resource:


<mail-resource host="smtp.gmail.com"
 transport-protocol-class="com.sun.mail.smtp.SMTPSSLTransport"
jndi-name="mail/MailResource" from="user_at_gmail.com" user="user_at_gmail.com">
 <property name="mail-smtp.socketFactory.fallback" value="false"></property>
<property name="mail.smtp.password" value="password"></property>
 <property name="mail-smtp.port" value="465"></property>
<property name="mail-smtp.auth" value="true"></property>
 <property name="mail-smtp.user" value="user_at_gmail.com"></property>
<property name="mail-smtp.socketFactory.class"
value="javax.net.ssl.SSLSocketFactory"></property>
 <property name="mail-smtp.socketFactory.port" value="465"></property>
<property name="mail-smtp.starttls.enable" value="true"></property>
 </mail-resource>

I keep getting the message saying:

"No password provided".

Can someone give me a hint? What Am I missing?

Thanks in advance.

-------------------------------
Paulo Reis