I want to send e-mail notification after registration, I do all things according to the jhipster documentation about configuring e-mail:
mail:
host: smtp.gmail.com
port: 587
username: *******@gmail.com
password: *****
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.gmail.com
According to another issue on stackoverflow I allow google account to connect with less secure apps, but still, I got exception about:
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Unable to convert connection to SSL (javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed
: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target). Failed messages: javax.mail.MessagingException: Unable to convert connection to SSL (javax.net.ssl.SSLHandshakeException: sun.security.validator
.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
What should I do to solve this issue?
Thank you in advance.