On Nov 20, 2009, at 8:45 PM, Martin Elkjær wrote:
Hi,
I'm trying to send mails from google. I had a setup from a plain
tomcat
install (without OpenEJB) that works. My resource looks like this :
<Resource id="mtdMail" type="javax.mail.Session">
mail.smtp.starttls.enable="true"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="587"
mail.transport.protocol="smtps"
mail.smtp.auth="true"
mail.smtp.from="XXXXXXXXXXX"
mail.smtp.user="XXXXXXXXXXX"
password="XXXXXXX"
/>
I've had a look at this email a couple times and didn't see any issues
with the configuration. But looking at it again it seems this might
be an identical issue to one we saw a month or so ago -- accidentally
quoting property values. The java.util.Properties parser will not
unquote the values. Try removing them and it should work.
Quintin do you recall the context in which this came up the first
time? I think it was your eagle-eye that spotted it. I seem to
remember coming out of that situation with a gut instinct that we
should handle the quotes universally so that situations like this
couldn't happen without big loud and clear warnings. Can't recall the
details though.
-David