我很熟悉联几支助组,并要求自动建立电子邮件。 我喜欢“海洋”的想法:在“共同财产法”式中发出排时电子邮件,并使用共同财产基金的组成部分:
<m:message>
<m:from name="Peter" address="peter@example.com" />
<m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
<m:subject>Try out Seam!</m:subject>
<m:body>
<p><h:outputText value="Dear #{person.firstname}" />,</p>
<p>You can try out Seam by visiting
<a href="http://example.com">http://example.com</a>.</p>
<p>Regards,</p>
<p>Pete</p>
</m:body>
</m:message>
如我所知,Documentation,特别是这一snippet(shortened),
因此,现在你有电子邮件模板,你如何去发送? 诚然,在发出邮件时:要求邮件寄送电子邮件,因此,你们都必须请Seanm提出意见,
@In(create=true) private Renderer renderer;
public void send()
{
renderer.render("/simple.xhtml");
facesMessages.add("Email sent successfully");
}
this is invoked in a common JSF (Facelet) page. Is there any chance to do this in a Message Driven Bean? Or should I head to other templating engines? see Suggestions for Java email templating?