362.9. 電子メールのサンプル
このサンプルでは、注文確認メールに Velocity テンプレートを使用します。電子メールテンプレートは、Velocity で次のようにレイアウトされます。
Dear ${headers.lastName}, ${headers.firstName} Thanks for the order of ${headers.item}. Regards Camel Riders Bookstore ${body}
Dear ${headers.lastName}, ${headers.firstName}
Thanks for the order of ${headers.item}.
Regards Camel Riders Bookstore
${body}
そして Java コード: