【问题标题】:Configure Grails Mail Plugin with Postfix使用 Postfix 配置 Grails 邮件插件
【发布时间】:2013-08-03 04:38:26
【问题描述】:

我正在尝试使用 Grails Mail 插件 http://grails.org/plugin/mail 和 Postfix https://www.digitalocean.com/community/articles/how-to-install-and-setup-postfix-on-ubuntu-12-04。我可以在 Linux 中使用“sendMail”发送电子邮件。但我在配置 Mail 插件以使用它时遇到了困难。

有人有这方面的经验吗?或者您还有其他好的解决方案吗?

非常感谢。

【问题讨论】:

  • 很伤心,3年后我需要一个答案,但没有。

标签: grails smtp postfix-mta


【解决方案1】:

在 grails-app/conf/application.yml 中放置以下设置

grails:
 mail:
      host: "yourDomain.com"
      username: "username@yourDomain.com"
      password: "your-password"
      props:
          mail.smtp.auth: "true"
          mail.smtp.socketFactory.port: "465"

就是这样...对我来说,它适用于 Grails 3.3,使用插件 org.grails.plugins:mail:2.0.0 和 Postfix 3.3 版

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-22
    • 2017-06-03
    • 2010-10-25
    • 2012-01-27
    相关资源
    最近更新 更多