MS Exchange 服务器的 Grails 邮件插件配置 [英] Grails mail plugin configuration for MS Exchange server

本文介绍了MS Exchange 服务器的 Grails 邮件插件配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!


我可以使用我的 grails 应用程序中的 gmail 帐户发送电子邮件,但是当我使用 MS Exchange 服务器帐户时,我收到此错误

I am able to send email using my gmail account from my grails application but when I use MS exchange server account I am getting this error

Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port:, 25; timeout -1;


mail {
      host = ""
      port = 25
      username = "xxxx"
      password = "xxxx"
      props = ["mail.smtp.auth":"true",

我不确定要使用什么配置.我尝试将端口更改为 465 &993 但这也不起作用.请帮忙

I am not sure what configuration to use. I tried changing port to 465 & 993 but that didn't work too. Please help


我终于搞定了.原来微软提供了一个单独的 API/web 服务来发送电子邮件和执行所有其他与邮件相关的操作.此 API 使开发人员能够以编程方式访问 Exchange Online、作为 Office 365 一部分的 Exchange Online 以及从 Exchange Server 2007 Service Pack 1 (SP1) 开始的 Exchange 版本.点击此处了解详情.

I finally got this working. Turns out Microsoft provide a separate API / web-services to send email and perform all other mail related operations. This API gives developers programmatic access to Exchange Online, Exchange Online as part of Office 365, and versions of Exchange starting with Exchange Server 2007 Service Pack 1 (SP1). Click here for details. 是 Exchange Server 2007 的主机 is host for Exchange Server 2007

我不确定,但我认为 Exchange server 2007 及以后不使用 SMTP.

And I am not sure but I think Exchange server 2007 and onwards don't use SMTP.

这篇关于MS Exchange 服务器的 Grails 邮件插件配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
发送“验证码”获取 | 15天全站免登陆