span8
span4
span8
span4
NOTE:This article applies toFME Server 2012only.For information about receiving email using more recent versions of FME Server,please seeEmail in FME Server: A Tutorial Series.
FME Server has the ability to receive an email and then process the email body and attachments within an FME workspace.The steps below include:
Important notes:
http://fmepedia.亚搏在线safe.com/articles/How_To/Email-in-FME-Server-A-Tutorial-Series
The steps below assume you are running FME Server version 2012 SP3 or SP4 on a computer publicly accessible to the internet.You also must ensure that the standard SMTP port 25 is open to TCP traffic.You need to know the public name of this computer and you need to do a one-time configuration step to enable your FME Server for incoming emails.The onetime configuration step is shown inthe documentation.
Email users must be created which are essentially email addresses we can use to send emails to FME Server.The email addresses are defined like this:
In FME Server 2012 a
Topiccan be used as an email user and emails sent to that user will trigger this same
Topic.
Steps:
1.Create a Topic by going to the Notifications tab FME Server Web Admin UI (
http://MyHost.com/fmeserver-admin).
Do notuse spaces in this Topic name because it will become the email user name.
2.Enable this user to receive email by going to FME Server Protocol settings (http://
MyHost.com/fmeprotocol).Click on
Emailand then scroll down to the topic you created above.Click the
Enablebutton beside the topic
.
Now emails can be sent to the email address
FMEServerReceiver@
MyHost.com and the Topic
FMEServerReceiverwill be triggered when an email is received.Next you will see how a workspace can subscribe to this topic and run when an email is received.
1.Now you will create a workspace which will be triggered by the email and which can perform some action with the content or attachment.
Using either the custom format or the sample workspace,create a workspace and add a logger to it so you can see the information extracted from the email.
2.Publish your workspace to FME Server.When you reach theRegister Servicesscreen in the publish wizard:
3.To test the final configuration,send an email with an attachment* to FME Server using the address FMEServerReceiver@MyHost.com.You may need to wait a few minutes for you email to go through depending on the speed of your email service.Go to the Jobs tab in the FME Server Web Administrators UI and examine the Job History.Once the email is received you should see that your workspace has been run.Double click on the job to examine the FME log file.You should see the information from the email logged out as FME attributes.
* At the time of writing FME Server can only process a single a file attachment but we expect this limitation to be resolved later in FME 2013.
Now that you can send emails to FME Server you may thinking what's next?The sample workspaces attached include aFilePathattribute which will contain the location of any file attachment sent with the email.You could add aFeatureReadertransformer to your workspace to read the email attachment and then do something with the actual data (perhaps a quality control 亚搏在线workflow).Or you could run a second workspace with the FMEServerJobSubmitter transformer and pass the FilePath attribute along to a source dataset parameter.Finally you could have FME Server email the sender back a report or a modified version on the data,which is the topic of another article.
---
Receiving email,Part 1: Setting up a topic and an email address (2015)
Sending email,Part 4: Sending prettier email using HTML (2015)
Sending email,Part 1: Setting up a topic and an email subscriber (2015)
Receiving email,Part 2: Processing email with a workspace (2015)
Sending email,Part 3: Sending an email when a workspace completes (2015)
Receiving email,Part 3: Using email attachments (2015)
Sending email,Part 5: Sending an email with attachments (2015)
Sending email,Part 2: Sending an email using the FMEServerNotifier (2015)
Subscribe,Report and Notify Tutorial - 3.Subscribe and Unsubscribe (2014)
© 2019 亚搏在线Safe Software Inc |Legal