grails mail connection refused

Posted by mkoryak on Stack Overflow See other posts from Stack Overflow or by mkoryak
Published on 2011-01-17T00:50:26Z Indexed on 2011/01/17 0:53 UTC
Read the original article Hit count: 211

Filed under:
|

it seems i have tried the mail config in the way that its docs said, but still i get:

Error 500: Executing action [x] of controller [x] caused exception: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP 

I am using google apps for my email so [email protected] is using gmail. i cannot get grails to send out a test message on my dev box (win 7).

my config is:

   host = "smtp.gmail.com"
   port = 465
   username = "[email protected]"
   password = "x"
   props = ["mail.smtp.auth":"true",
            "mail.smtp.debug":"true",
            "mail.smtp.starttls.enable":"true",
            "mail.smtp.socketFactory.port":"465",
            "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
            "mail.smtp.socketFactory.fallback":"false"]

© Stack Overflow or respective owner

Related posts about email

Related posts about grails