如何通过 Azure Logic App 和 Outlook 发送 html 封电子邮件

How to send html email through Azure Logic App and Outlook

我正在使用 Azure Logic App 通过 Outlook 发送电子邮件。

但是,我无法使用 HTML 格式的 [发送 Outlook 电子邮件] 操作。

发送的邮件是纯文本格式。

如何使用 Azure Logic App 发送 HTML 电子邮件并发送 Outlook 电子邮件?

打开 "Send Email" 任务并单击“高级选项”。那里有一个"Is HTML"设置。

转到 "Send an Email Action" 并单击 "Add new parameter",然后单击 select "Is HTML"。

然后将参数"Is HTML"的值设置为"Yes"

这就是 Action V1 的全部内容。对于 V2,这不再可能了。

此博客介绍了新选项:https://blog.sandro-pereira.com/2020/01/26/logic-apps-how-to-send-a-well-formatted-html-email-notification-with-office-365-outlook-connector/

基本上,正确呈现 HTMl 的解决方法是创建一个变量并将 HTML 粘贴到其中,然后将该变量引用为电子邮件正文。