2017-02-20 25 views
0

Spring Bootアプリケーションから電子メールを送信すると、次のエラーが発生します。Spring Boot - 電子メールを送信できません

org.springframework.mail.MailSendException:失敗したメッセージ: com.sun.mail.smtp.SMTPSendFailedException:550 5.7.60 SMTP;クライアント は、この送信者として

を送信する権限を持っており、以下の私のアプリケーションのプロパティではありません。

spring.mail.host = smtp.office365.com 
spring.mail.username = [email protected] 
spring.mail.password = password 
spring.mail.port = 587 
spring.mail.properties.mail.smtp.auth = true 
spring.mail.properties.mail.smtp.starttls.enable = true 
+0

Gmailにブロックされ、以下の私のアプリケーションであり、ファイアウォールの起動があるかどうかを確認してください.properties: spring.mail.host = smtp.office365.com spring.mail.username = [email protected] spring.mail.password =パスワード spring.mail.port = 58 7 spring.mail.properties.mail.smtp.auth = true spring.mail.properties.mail.smtp.starttls.enable = true – ThomasKA

+0

権限はありません。それを調べる。 –

+0

タイムリーに返信いただきありがとうございます。これは私が電子メールを送信する電子メールアドレスです。だから私は許可を得なければならない。 – ThomasKA

答えて

関連する問題