JavaMail Issue : Can't send command to SMTP host

前端 未结 5 1166
南方客
南方客 2021-01-12 16:15

I\'m trying to do java mail and im getting an error \"Cant send command to SMTP host\". Any help would be appreciated. And any future problems\' solutions if possible. The e

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 16:45

    Today I gone through this same issue. But for me the issue is, in smtp server TLS was not enabled. So I have changed the mail properties like this.
    mail.smtp.starttls.enable=false

    Now every thing is working good for me.

提交回复
热议问题