Grails Non SSL Email Configuratoin

197 Views Asked by At

I want to sent email from grails application. Mail server is HARAKA which does not support ssl. Instead of SSL it uses TLS. Configuration is:

mail `{`
`host = "mm13.us1.emailsrv.net"`
`port = 2525`
`username = "user"`
`password = "pass****"`
`props` = `[` 
         `"mail.smtp.auth":"true",`
         `"mail.smtp.port":"2525",`
         `"mail.smtp.socketFactory.fallback":"false",`
         `"mail.smtp.starttls.enable": "true"`
      `]`
`}`

Facing Error:

Problem sending email Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;

0

There are 0 best solutions below