JavaMail with MS Exchange: No authentication mechansims supported by both server and client

前端 未结 6 2119
天命终不由人
天命终不由人 2021-01-12 01:39

I\'ve been trying for days now to send mail from Grails application and unsuccessfully. I\'m using:

  • grails 1.3.7
  • mail 1.0 plugin
  • spring-secur
6条回答
  •  悲&欢浪女
    2021-01-12 02:36

    If you're trying to connect to your mail server without authentication, call the connect method that doesn't take a username and password. If you pass it a username and password, it thinks you really want to authenticate, and since it can't find an authentication mechanism that the server supports, it fails.

提交回复
热议问题