332.8. 电子邮件示例

在本例中,我们想要使用字符串模板来发送订单确认电子邮件。电子邮件模板在 StringTemplate 中称为 laid out,因为此示例适用于 camel 2.11.0。如果您的 camel 版本小于 2.11.0,应启动 变量并以 $ 结尾。

Dear <headers.lastName>, <headers.firstName>

Thanks for the order of <headers.item>.

Regards Camel Riders Bookstore
<body>

java 代码如下: