メール送信
ソースコード
Gmailを使う場合の例。
変更(追加)
- build.grade: spring-boot-starter-mailをdependenciesに追加
 - application.properties: メールサーバに関する設定を追記
 
新規作成
- MailController: コントローラ
 - テンプレート
 
関連文書
- 36. Sending Email (Spring Boot Reference Guide)
 - アプリ パスワードでログイン: 送信サーバとしてGmailのサーバを使う場合はアプリパスワードを生成する必要がある。