Skip to main content
Hello, I saved some information and coordinates to a PostgreSQL-DB from a php-form. beside this process the website will send an email to the fme server 2015 to start a workbench which perform some clipping with the coordinates and also save some more information to the postgresql. finaly the workbench send me an email for success. Thats the plan.

 

 

I didn't understand how to configure the fme server to start the workbench after receiving the email?

 

Thanks for any advice.

 

Lencer
Hi

 

 

First you define a Publication (EMail) that publishes to a Topic whenever an email is received. I defined the topic SAMPLE_TOPIC for the screenshot below.

 

 

Then you publish your workspace to FME Server with the Notification Service linked to the topic that is triggered when the email arrives:

 

 

 

 

The "Notification data reader" is the one that will contain your email when your workspace is triggered by the topic. You can use something like the TEXTLINE reader for this. Make sure to set "Read whole file at once" on your reader to get one feature containing the entire mail message, otherwise you'll get one feature per line of text.

 

 

David
Hi David, thx for your efforts.

 

 

I didn't understand the part about the TEXTLINE Reader (FME 2015 its called "Text File Reader", i think so). If i try to plug in the reader I have to define the Dataset. I don't know which Dataset I have to use. Any textfile? Or a special formated Textfile?

 

 

Greetings Lencer
Hi,

 

A good place to strat with FME Server and email is:

 

https://knowledge.safe.com/articles/How_To/Email-in-FME-Server-A-Tutorial-Series
Hi

 

 

When you create your workspace just point your reader to any old text file, it doesn't matter which. When your workspace is triggered by FME Server, the text file contents will be automatically replaced with the email contents.

 

 

Here is a tutorial that pretty much covers your question: https://knowledge.safe.com/articles/How_To/Receiving-email-Part-1-Setting-up-a-topic-and-an-email-address

 

 

David

Reply