Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将发送日期添加到发送的 HTML 邮件中?
提前致谢
不能像在 RTE 或 HTML-Template 中那样使用 mail 变量{mail.crdate},因为在发送邮件时邮件对象尚未持久化(保存)。使用 format.date ViewHelper 作为 Workarround 应该会有所帮助: {f:format.date(date:'now', format:'%d.%m.%Y %H:%M')}
{mail.crdate}