在 CQ5 中处理自定义电子邮件模板时,我在 etc/notification 下创建了以下文本文件。当用户填写表单时触发工作流。
From: Order Brochure <order.brochures@gmail.com>
To: ${payload.email}
CC:
Subject: Order Brochures Confirmation ${payload.BrochureID}
Dear ${payload.Name},
Thank you for your Brochure Order, your reference is ${payload.orderBrochureID}.
Your email address is {$payload.email}.
除了“收件人:${payload.email}”之外,此模板中的所有内容都可以正常工作。甚至“您的电子邮件地址是 {$payload.email}”部分也显示用户输入的电子邮件很好。如果我在“收件人:”中输入静态电子邮件地址,它也可以工作。
我在这里做错了什么?以下是日志中的错误
Process execution resulted in an error:
javax.mail.internet.AddressException: Illegal address in string ``''
com.day.cq.workflow.WorkflowException: javax.mail.internet.AddressException: Illegal
address in string ``''