【Azure Logic App】在Azure Logic App中使用SMTP发送邮件示例

简介: 【Azure Logic App】在Azure Logic App中使用SMTP发送邮件示例

问题描述

在Azure Logic App的官网介绍中,使用SMTP组件发送邮件非常简单(https://docs.azure.cn/zh-cn/connectors/connectors-create-api-smtp#connect-to-smtp)。

本文通过实际操作,配置SMTP,然后设置Email内容,最后触发Logic App并验证是否接受到邮件。

 

问题解答

第一步:准备SMTP信息

本文以outlook.com个人账号为例,通过链接 (获取Outlook的SMTP信息:https://outlook.live.com/owa/?auth=1&path=/options/popandimap

Outlook.com的SMTP信息为:

Server name: smtp.office365.com
Port: 587
Encryption method: STARTTLS

第二步:在Logic App 的SMTP 组件中配置SMTP 和邮件内容

选择SMTP --> Send Email (V3)

数据SMTP信息以及个人邮箱,密码

选择 To, Subject, Body,然后输入相应的模板内容

保存后,在Workflow的Overview页面中,获取触发Logic App的URL,发送POST请求验证。

 

完成示例如动图:

 

参考资料

从 Azure 逻辑应用连接到 SMTP 帐户 : https://docs.azure.cn/zh-cn/connectors/connectors-create-api-smtp#connect-to-smtp

smpt server ID and port # for live.com email account : https://answers.microsoft.com/en-us/outlook_com/forum/all/smpt-server-id-and-port-for-livecom-email-account/4d47d92b-494c-4f64-afd7-4c70f67e46d1

Setting up Outlook.com is simple as long as you know the POP3 and SMTP Settings. Listed below are the server settings that you are looking for:

  • IMAP server name imap-mail.outlook.com
  • IMAP port 993
  • IMAP encryption method TLS
  • POP server name pop-mail.outlook.com
  • POP port 995
  • POP encryption method TLS
  • SMTP server name smtp-mail.outlook.com
  • SMTP port 587
  • SMTP encryption method STARTTLS

You can also see this information once you log in at https://outlook.live.com/owa/?auth=1&path=/options/popandimap

If you need clarifications, feel free to message us again.

相关文章
|
9天前
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub的解决之法
An exception occurred while retrieving properties for Event Hub: logicapp. Error Message: 'ClientSecretCredential authentication failed: AADSTS90002: Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Che
|
15天前
|
安全
【Azure App Service】App service无法使用的情况分析
App Service集成子网后,如果子网网段中的剩余IP地址非常少的情况下,会在App Service实例升级时( 先加入新实例,然后在移除老实例 )。新加入的实例不能被分配到正确的内网IP地址,无法成功的访问内网资源。 解决方法就是为App Service增加子网地址, 最少需要/26 子网网段地址。
|
24天前
|
C++
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub
|
24天前
【Azure Logic App】在逻辑应用中开启或关闭一个工作流是否会对其它工作流产生影响呢?
【Azure Logic App】在逻辑应用中开启或关闭一个工作流是否会对其它工作流产生影响呢?
|
开发工具 数据安全/隐私保护 安全
远程调试 Azure Web App
当我们将 Web App 部署在 Azure 上时,如果能够实现远程调试,将会极大的提高我们修复 bug 的效率。Visual Studio 一贯以功能强大、易用著称,当然可以实现基于 Azure 应用的创建、发布和调试。
1164 0
|
17天前
|
Web App开发 Java 视频直播
FFmpeg开发笔记(四十九)助您在毕业设计中脱颖而出的几个流行APP
对于软件、计算机等专业的毕业生,毕业设计需实现实用软件或APP。新颖的设计应结合最新技术,如5G时代的音视频技术。示例包括: 1. **短视频分享APP**: 集成FFmpeg实现视频剪辑功能,如添加字幕、转场特效等。 2. **电商购物APP**: 具备直播带货功能,使用RTMP/SRT协议支持流畅直播体验。 3. **同城生活APP**: 引入WebRTC技术实现可信的视频通话功能。这些应用不仅实用,还能展示开发者紧跟技术潮流的能力。
46 4
FFmpeg开发笔记(四十九)助您在毕业设计中脱颖而出的几个流行APP