使用 SAP 工作流程“发送邮件”发送 HTML 电子邮件活动
我们有一个 SAP 工作流程,它使用“发送邮件”活动向相关用户发送电子邮件。
我想在此电子邮件中包含超链接,以便用户在单击电子邮件中的链接后可以转到特定网站。
单击此处查看详细信息
但是,在电子邮件客户端中查看电子邮件时,它以 RAW 格式显示。
如何指定“发送邮件”以 HTML 格式发送电子邮件?
We have a SAP workflow which uses "Send Mail" activity to send an email to relevant users.
I want to include hyperlinks in this email so that the user can be taken to particular site upon clicking the link in the email.
Click here to view details
However, when the email is viewed in the email client, it is shown in RAW format.
How do I specify Send Mail to send out the email in HTML format??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉工作流程,但根据您想要做什么,您将需要编写一些代码。
首先,如果您只是尝试添加超链接,您可以尝试将以下 XML 标记放入“发送邮件”任务中(不要断线)。
然后,如果您的电子邮件以纯文本形式到达,您可能必须更改 SCOT 事务上的配置,从 RAW 更改为 HTM。 (请参阅下面的说明链接)
如果这不能按预期工作,请尝试编写自定义功能模块来接收收件人和超链接,并使用 SO_DOCUMENT_SEND_API1 FM (或 SO_NEW_DOCUMENT_ATT_SEND_API1 FM,甚至 CL_BCS class )发送电子邮件,以便您将完全控制电子邮件的发送。
最后,看一下 SDN
SCOT 事务讨论中有关工作流超链接的以下帖子: http://forums.sdn.sap.com/thread.jspa?messageID=1152432#1152432
以及如何使用 FM 或类从工作流程步骤发送电子邮件:
http://forums.sdn.sap.com/thread.jspa?threadID=1948769
I’m not a workflow literate, but depending on what you want to do, you will have to code a little bit.
First, if you are just trying to add the hyperlink, you may try putting the following XML tag in your Send Mail task (don’t break the line).
Then, if your e-mail is arriving as plain text, you may have to change the configuration on SCOT transaction, from RAW to HTM. (see explanation link below)
If that don’t work as expected, try coding a custom function module to receive the recipients and hyperlinks, and send the e-mail using SO_DOCUMENT_SEND_API1 FM (or SO_NEW_DOCUMENT_ATT_SEND_API1 FM, or even CL_BCS class ), so that you will have full control over e-mail sending.
Finally, take a look at the following POSTS from SDN
SCOT transaction discussion on workflow hyperlinks: http://forums.sdn.sap.com/thread.jspa?messageID=1152432#1152432
And how to use the FM or classes to send emails from workflow step:
http://forums.sdn.sap.com/thread.jspa?threadID=1948769