Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Grails Send Mail不工作_Grails_Ssl_Grails Plugin_Grails 2.0 - Fatal编程技术网

Grails Send Mail不工作

Grails Send Mail不工作,grails,ssl,grails-plugin,grails-2.0,Grails,Ssl,Grails Plugin,Grails 2.0,我正在使用grails应用程序发送电子邮件。我是这样做的 Config.groovy---- 和控制器--- 当我试图发送邮件时。这是投掷错误 URI /groovypublish/mail/sendmail Class sun.security.provider.certpath.SunCertPathBuilderException Message unable to find valid certification path to requested target

我正在使用grails应用程序发送电子邮件。我是这样做的

Config.groovy----

和控制器---

当我试图发送邮件时。这是投掷错误

 URI
   /groovypublish/mail/sendmail
 Class
   sun.security.provider.certpath.SunCertPathBuilderException
 Message
   unable to find valid certification path to requested target
如果我从config.groovy中删除邮件道具部分。然后在发送邮件后,我的页面加载了无限次

我正在使用localhost:8080发送邮件。我知道问题出在SSL中。但如何避免SSL部分


请帮帮忙…

我也有同样的问题。进入我的病毒扫描程序设置并关闭出站邮件扫描解决了问题。

从配置中删除
道具
,以避免SSL。ASAT@dmahapatro,当我从配置中移除道具时。我的页面正在加载无限次。它没有显示任何东西只是加载…有人知道问题出在哪里吗???它工作,我不知道如何。我把我的操作系统改成了ubuntu,现在它可以工作了。
class MailController {
  def mailService

  def sendmail = {
mailService.sendMail {     
    to "example@gmail.com"     
    subject "Hello Fred"     
    body 'How are you?' 
  }
  }
 URI
   /groovypublish/mail/sendmail
 Class
   sun.security.provider.certpath.SunCertPathBuilderException
 Message
   unable to find valid certification path to requested target