users@glassfish.java.net

Re: GF V3.1 - Mail Resource with GMail

From: Gregory Gerard <ggerard_at_mac.com>
Date: Mon, 20 Sep 2010 14:03:19 -0700

you have a '.' where the others are '-'.

mail.smtp.password
=>
mail-smtp.password

greg

On Sep 20, 2010, at 10:28, CasMeiron wrote:

> 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
>
>