Forgot to mention some more lines of code (see below)
2007/4/13, bart remmerie <[EMAIL PROTECTED]>:
I've been taking a look at this lately.
Javamail 1.4 supports TLS authentication (which is required for gmail).
See the SSL-notes in their bundle (at the bottom of this mail).
Basically (in my thoughts) it should be enough to get
mail.smtp.starttls.enable=true
into the properties
to test it quick and dirty, I added the following line of code
properties.put("mail.smtp.starttls.enable","true");
properties.put("mail.smtp.auth", "true");
properties.put("mail.smtp.port","465"); //which is used for gmail
to the initSession() method in the MailMessageSender class
Unfortunately, it didn't seem to work.
BUT, I'm convinced that some cocoon-mail expert could find a quick
solution !!
Regards,
Bart
"JavaMail now supports accessing mail servers over connections secured
using SSL or TLS. To simplify such access, three new protocols have
been added. In addition to the non-SSL JavaMail protocols "imap",
"pop3", and "smtp", the protocols "imaps", "pop3s", and "smtps" can
be used to connect to the corresponding services using an SSL
connection.
-- STARTTLS support
The STARTTLS support is available in the standard "imap" and "smtp"
protocols, but must be enabled by setting the appropriate property,
mail.imap.starttls.enable or mail.smtp.starttls.enable, to "true".
When set, if the server supports the STARTTLS command, it will be
used after making the connection and before sending any login
information."
2007/4/13, Jasha Joachimsthal <[EMAIL PROTECTED]>:
>
> Guess not, in the API docs there's a known issue called
> No support for RFC 2554: SMTP Service Extension for Authentication
> And for gmail you need authentication.
>
> Jasha Joachimsthal
>
> Hippo
> Oosteinde 11
> 1017 WT Amsterdam
> The Netherlands
> +31 (0)20 5224466
>
> www.hippo.nl
>
> > -----Original Message-----
> > From: Voigt, Bjoern (EXTERN: AUEL)
> > [mailto: [EMAIL PROTECTED]
> > Sent: vrijdag 13 april 2007 13:10
> > To: [EMAIL PROTECTED]
> > Subject: googlemail ssl via SendMailTransformer
> >
> > Hello Cocooners,
> >
> > a second question about the SendMailTransformer.
> >
> > is it possible to define smtp-hosts, that uses
> > SSL-Connections like the gmail smpt-service?
> >
> > thanks for help
> >
> > Björn
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Bart Remmerie
--
Bart Remmerie