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

前端 未结 6 2161
天命终不由人
天命终不由人 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:34

    If you'd want your application that to login to the SMTP server (Since you are providing authentication details). Just change

    props.put("mail.smtp.auth", false); 
    

    to

    props.put("mail.smtp.auth", true); 
    

提交回复
热议问题