span8
span4
This article was updated using FME Server 2018.1, but steps used can be applied to FME Server 2016 and above.For the FME Server 2015 version of this article, please see:接收电子邮件,第1部分:设置一个主题和电子邮件地址(2015)。
本教程是系列的一部分Email in FME Server。以下三篇文章介绍如何设置FME Server来接收电子邮件。第一篇文章介绍了创建出版物,或者使用FME服务器内部SMTP服务,或者使用IMAP协议,允许FME Server来监控预先存在的外部邮件服务器,此外,我们将建立一个主题来记录传入的电子邮件消息的 a string of JSON.
This video也将引导您完成配置SMTP和IMAP。注:此视频是使用FME服务器2014创建的。
为了接收电子邮件,FME Server必须被设置为这些收到的通知发布到一个话题。第一步是建立一个话题。由于话题只是一个名为“通道”的所有这涉及到为给该主题的名称和说明。
电子邮件教程
这是将由FME服务器被用来监视传入的电子邮件主题
然后单击确定以创建主题。
完成主题配置
The topic will show up in the list of topics.
New topic now listed
接下来,我们创建电子邮件发布。该出版物是在收件箱拿起任何新邮件,是什么将发送相应的信息到主题的通知服务的一部分。
有两种方法用于接收与FME Server的邮件:
该服务使用FME的内置电子邮件服务器,通过指定的用户名的电子邮件,可以间接地发送到主机,在其上的信息将被发送到我们刚刚创建的注册的话题。
创建一个新的出版物,在通知页转到刊物>新
设置以下参数:
Publication Name: IncomingEmailDemo
Protocol: Email (SMTP)
Email User Name: demoEmailUser
话题 To Publish To: RECEIVE_EMAIL
点击OK,你会在列表中看到您的出版物。
电子邮件地址是由以电子邮件的用户名参数,然后您的服务器主机只需创建:
demoEmailUser@myfmeserver.mydomain
Configure new SMTP publication with a new username
第二个选项需要你给FME Server的IMAP访问外部邮件服务器发来的电子邮件中观看一个帐户。下面的例子设置为使用Gmail。
创建一个新的出版物,在通知页转到刊物>新
输入参数如下:
Publication Name: IncomingEmailDemo
Protocol: Email (IMAP)
协议设置将取决于您的帐户。SSL和TLS基本身份验证的支持以确保安全。
Poll Interval: This is how often you would like FME Server to check the Account for new emails
Emails to fetch: Do you want to retrieve all unread messages or new emails only?
其他可选参数:
Subject Filter: If entered, only fetches emails where the subject contains said string (see more info below)
Download Attachments To: Select a location to save email attachments.This can be from within the FME Server Resources, or you can specify the UNC path to another directory.
Configure the IMAP Publication
为了处理用于不同的目的来到同一地址的电子邮件,可以输入主题过滤器。如果它被设置,只有电子邮件主题containing the filter text will result in a notification being sent to the registered topic.The subject filter can be plain text or a regular expression.For example, to accept emails for three different projects, you could use the following expression:
project105|project481|project722
You would then need to filter these emails accordingly in the processing workspace.There is an example of this inthe next section of this tutorial。
To ensure you have correctly set up the Topic and Notification, you can turn on Topic Monitoring and then send an email to the appropriate email account.If you are using IMAP, this will be your mail server email account specified in the Notification configuration (e.g.fmeserver@gmail.comin the example).If you are using SMTP, this will be demoEmailUser@myFMEServer.mydomain.
注意:请确保您更改myFMEServer.mydomain到实际的服务器名称和域名。
Topic Monitoring page on FME Server
Note: You must keep this page open in the web browser else topic monitoring may be interrupted.Open a separate tab to send the email.If you have correctly set up the service a json message will be returned detailing the information related to said email.
In this section of the “Receiving email” tutorials, we have set up an email topic and publication.By enabling FME Server to receive emails this will allow you to trigger different protocols in response to these emails through subscriptions to the topic.Read on to learn how to create a workspace that uses these emails.
查看电子邮件发布说明文档
©2020安全亚搏在线软件公司|法律