users@glassfish.java.net

Re: GF V3.1 - Mail Resource with GMail

From: CasMeiron <casmeiron_at_gmail.com>
Date: Tue, 21 Sep 2010 08:20:30 -0300

Hi greg,

That was my error when writing the resource here, I changed the password and
mis-replaced the dash for dot so I still get the error.

Thanks in advance.
-------------------------------
Paulo Reis




On Mon, Sep 20, 2010 at 6:03 PM, Gregory Gerard <ggerard_at_mac.com> wrote:

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