斯潘8
斯潘4
This article was updated using FME Server 2018.1,但所采用的步骤可应用于FME Server 2016及更高版本。For the FME Server 2015 version of this article,请参阅:发送电子邮件,第5部分:发送带附件的电子邮件.
上一节:发送电子邮件,第4部分
本教程是本系列的一部分FME服务器中的电子邮件.这是发送电子邮件系列的第五篇文章。This article will cover how to send emails with attachments through the FME Server.
如被覆盖part 2,为了发送一个电子邮件从一个工作区,您必须为电子邮件通知生成JSON,然后通知服务器。要添加对附件的支持,email_attachment关键字需要添加到JSON中,并提供您希望发送的文件的路径。The FMEServerEmailGenerator handles this automatically for us.
You can use the workspace from thepart 2在教程中,或下载所附的FMW文件。
t运行作业的FME服务器引擎必须能够访问数据路径。您应该指向服务器上本地的数据,或在可访问的共享驱动器上(例如UNC path) if you are using on-premises FME Server.或者,你可以使用Resources folders存储附件的数据[例如$(fme_sharedesource_mydata)/parks.zip]。
如果你没有收到电子邮件,可以执行以下操作进行故障排除:
在FME服务器Web界面中启用对发送电子邮件主题的监视。这将向您展示关于该主题的内容。
如果主题中接收到JSON内容,your SMTP settings are probably incorrect.复习它们,and try again.
有关使用日志文件排除通知故障的详细信息,看见关于FME服务器中的日志文件.
In this part of the tutorial,we've sent an email with an attachment using FME Server and an SMTP server.我们使用fmeserveremailgenerator transformer从一个工作区完成了这项工作,但所有这项工作都是生成JSON,并通过fmeservernotifier transformer将其提交给fme服务器。您可以按照FME服务器操场
.
?2019安全亚搏在线软件公司|合法的