Dynamics Ax 2009,电子邮件模板
我在 Axe 中创建了一个电子邮件模板,使用 %varname%
作为您发送电子邮件时添加到地图中的项目的占位符:
emailParameterMap.insert("modifiedBy", userFullName);
emailParameterMap.insert("vendorName", vendorName);
SysEmailTable::sendMail("VendChanges", "en-us", "[email protected]", emailParameterMap);
但是,我想要一个未知号码的列表发送的电子邮件结果中的项目数。
我怎样才能做到这一点?
I have created an email template in Ax, using the %varname%
as a placeholder for items added to the map when you send the email with this:
emailParameterMap.insert("modifiedBy", userFullName);
emailParameterMap.insert("vendorName", vendorName);
SysEmailTable::sendMail("VendChanges", "en-us", "[email protected]", emailParameterMap);
But, I want to have a list of an unknown number of items in the email result that is sent.
How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 XSLT 布局而不是 HTML 来定义电子邮件模板,以呈现数据列表。
但是您必须编写自己的代码来生成作为 _xmlData 参数传递给 SendMail 的 XML。当然,您还必须定义 XSLT 本身,以转换 XML。
You can define your e-mail template with XSLT layout rather than HTML, to render a list of data.
But you will have to write your own code to generate for the XML you pass to SendMail as the _xmlData parameter. And you will of course also have to define the XSLT itself, for transforming the XML.
我不禁认为使用 System.Net.Mail 会更好。查看此博客文章:http://hiyajac.blogspot .com/2010/06/sending-emails-from-dynamics-ax.html
I can't help thinking you will be better off using System.Net.Mail for this. Check out this blog article: http://hiyajac.blogspot.com/2010/06/sending-emails-from-dynamics-ax.html