Solved

Send email with download link

  • 21 March 2024
  • 3 replies
  • 73 views

Userlevel 1
Badge +8

I guess that’s a very easy one, but I can’t find the right answer.

I created a gallery app, and the user can provide an email address to receive the results of the run.

Unfortunately, while the workspace runs trough, and when staying on the page I get also a working download link for the data, the email is never sent.

What I would like to know is, how I should set up the email service on FME Server. I can choose between ‘Automation’ or ‘Notification → Subscription’.

  • The automation keeps me puzzled on what trigger I should use to say a user started the run of a workspace, and please use the provided email address to send the email.
  • The subscription seems to be a bit more straight forward and I would aim for the Email protocol , and set the subscription topic to JOBSUBMITTER_ASYNC_JOB_SUCCESS, but then I am lost in the protocol settings when it comes to the ‘Email To- part, and to know what actually will be in the body of the email.

Essentially the only thing I need is a setup that sends an email to the user-provided email address, containing a link to the download resource.

I tried an automation with an FME Server Topic to listen to JOBSUBMITTER_ASYNC_JOB_SUCCESS, connected an Email action to it and provide the ‘Send To’ address static… That works, and when the workspace is done an email with the download link is send to me. But this will send always an email with a download link to me as soon as a download service finished successfully. 😉

 

Do I need to have an Emailer in my workspace, or is this obsolete when using an automation, and how do I connect to the email address provided through the ui of the gallery app?

icon

Best answer by kate-safe 25 March 2024, 20:10

View original

3 replies

Userlevel 1
Badge +4

Hi @tb09114 

One way to achieve this would be to use an Emailer in the workspace that is linked to a user parameter to get the email address needed.  Then you can put this in an automation (no external action is needed, unless you want to receive any notifications etc. yourself of when this flow runs) and build the app from there.  

A similar example of this can be found in this community post.

I hope that helps clarify things, but if you have any other questions or problems please let me know!

Userlevel 4
Badge +30

Hi @tb09114 

One way to achieve this would be to use an Emailer in the workspace that is linked to a user parameter to get the email address needed.  Then you can put this in an automation (no external action is needed, unless you want to receive any notifications etc. yourself of when this flow runs) and build the app from there.  

A similar example of this can be found in this community post.

I hope that helps clarify things, but if you have any other questions or problems please let me know!

great

Userlevel 1
Badge +8

Thanks @kate-safe! Your solution works great, and after I fiddled a bit around to create a proper download link, the users get their data delivered. 🙂

Reply