[Grails] grails 插件 Mail

wangheshiniye 2014-02-28
有没有用过mail插件的 为什么同样的发邮件的程序 部署到两台机器上 一个成功一个失败发布出去邮件  是电脑环境的问题吗
异常信息:
org.quartz.JobExecutionException: org.springframework.mail.MailSendException: Ma
il server connection failed; nested exception is javax.mail.MessagingException:
Could not connect to SMTP host: smtp.qq.com, port: 465;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExc
eption: PKIX path validation failed: java.security.cert.CertPathValidatorExcepti
on: basic constraints check failed: pathLenConstraint violated - this cert must
be the last cert in the certification path. Failed messages: javax.mail.Messagin
gException: Could not connect to SMTP host: smtp.qq.com, port: 465;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExc
eption: PKIX path validation failed: java.security.cert.CertPathValidatorExcepti
on: basic constraints check failed: pathLenConstraint violated - this cert must
be the last cert in the certification path; message exceptions (1) are:
Failed message 1: javax.mail.MessagingException: Could not connect to SMTP host:
smtp.qq.com, port: 465;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExc
eption: PKIX path validation failed: java.security.cert.CertPathValidatorExcepti
on: basic constraints check failed: pathLenConstraint violated - this cert must
be the last cert in the certification path [See nested exception: org.springfram
ework.mail.MailSendException: Mail server connection failed; nested exception is
javax.mail.MessagingException: Could not connect to SMTP host: smtp.qq.com, por
t: 465;
Global site tag (gtag.js) - Google Analytics