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