Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29745

Spring Boot - Not able to send email

$
0
0

I am getting the following error when I send email from my Spring Boot app.

org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender

And below are my application properties:

spring.mail.host = smtp.office365.comspring.mail.username = my.email@company.comspring.mail.password = passwordspring.mail.port = 587spring.mail.properties.mail.smtp.auth = truespring.mail.properties.mail.smtp.starttls.enable = true

Viewing all articles
Browse latest Browse all 29745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>