Skip to main content
Solved

Send email with download link

  • March 21, 2024
  • 3 replies
  • 229 views

tb09114
Supporter
Forum|alt.badge.img+21

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?

Best answer by kate-safe

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!

View original
Did this help you find an answer to your question?

3 replies

kate-safe
Safer
Forum|alt.badge.img+6
  • Safer
  • Best Answer
  • March 25, 2024

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!


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • April 1, 2024
kate-safe wrote:

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


tb09114
Supporter
Forum|alt.badge.img+21
  • Author
  • Supporter
  • April 2, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings