我想触发带有自定义正文消息的邮件。我可以在我的正文中解析时间戳,但是当我尝试在正文中添加字符串值时我想在我的正文中添加字符串我无法重现它。谁能帮我解决它。我在非常关键的实施。
请在下面找到我的示例代码,
(let [email (mailer {:host "cccc"
:port 25
:user "111111"
:pass "111111"
:auth "true"
:subject (fn [events] "1DD Monitoring - Response time SLA breach")
:body (fn [events]
(apply str "Hello Team, now the time is" (:**silo** events) "Thank You!"))
:from "xxx@xxxx.com"})]
我在筒仓字段中从logstash向riemann发送值,我想在正文中打印筒仓字段值