I have set the file application-prod.yml with mail account but it is not working with mail server , it returns error 550 invalid helo name. i want to know where i can set host correctly. thanks
mail:
host: mail.xxxx.cloud
port: 587
username: register@xxxx.cloud
password: xxxxxxxxxx
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: mail.xxxx.cloud
...
...
...
mail:
from: register@xxxx.cloud
base-url: https://host.xxxx.cloud/
debug: true
underproperties.mail.smtp:
. If it does not help; you could try to write a simpler program that does not depend on spring boot, it'll be easier to debug kodejava.org/how-do-i-debug-application-that-uses-javamail-apis – Gaël Marziou Dec 17 '20 at 22:14