15. 5. 実装方法step0. プロジェクト準備
今回は、Githubのサンプルプロジェクトを使います。
lastaflute-example-maihama
example project for LastaFlute as multi-project (with
MySQL)
lastaflute-example-harbor ★これを使います。
example project for LastaFlute as single project (with
H2)
lastaflute-example-waterfront
example project for LastaFlute, ESFlute (with
Elasticsearch, also JSP)
https://github.com/lastaflute
19. 5. 実装方法step1. テンプレート作成
e.g. 新しい会員の登録を想定したメールテンプレート
@welcome_member.dfmail
/*
[New Member's Registration]
The member will be formalized after click.
*/
subject: Welcome to your sign up, /*pmb.memberName*/
>>>
Hello, /*pmb.memberName*/
How are you? Thank you for signing up to Maihama!
You are now temporaly registered to the site.
Please click on the link below to become a formal member.
http:///*pmb.domain*//signup/register/?account=/*pmb.account*///*pmb.token*/
We hope you will enjoy your time in Maihama.
Thank you.
※Eclipseプラグインの「EMecha」が入ってれば、ハイラ
イト表示されます。
23. 5. 実装方法step4. 動作確認
ログ確認
2016-11-27 03:00:46,838 [qtp1900164709-13] DEBUG (SMailTypicalLoggingStrategy@showMessage():57) - ...Sending mail as training:
/= = = = = = = = = = = = = = = = = = = = = = = = = = Mail Message
subject: [Test]Welcome to your sign up, a
from: Harbor Support <harbor-support@annie.example.com>
to: a@docksidestage.org
return: returnpath@docksidestage.org
sysInfo: {dfmail=member/welcome_member.dfmail, locale=none, category=main}
>>>
Hello, a
How are you? Thank you for signing up to Maihama!
You are now temporaly registered to the site.
Please click on the link below to become a formal member.
http://localhost:8090/harbor/signup/register/a/38d1f7ff94904e4956d2afc8c99fe22d/
We hope you will enjoy your time in Maihama.