Skip to main content

FME folks,

 

We have been using FME Server's new event driven automation with great success. Our FME server workspace creates a nice HTML report page when executed and is attached to a notification email upon successful completion of the task. We were just wondering if it is possible without much modifications to simply use the HTML report in the email body instead of using plain text? While I have read and seen some FME workbenches that uses html in creating the email body, our intention is to present the HTML report created to simply appear as the email body when sent out.

Any inputs regarding this topic will be greatly appreciated. If not possible now, may be it will be a good 'new idea' for future.

Best wishes,

Deep Bhari

 

You should be able add the html_content into the body of the 'emailer' transformer and send it as is. I did have some trouble with the email displaying the report correctly though so it may not work.

 

 

It's not using the notification, however, that may require a little more work but it should be doable with a text file writer passing the html as the notification content to the email subscription.

 

 

 

 


Hi @deepbhari, you are not yet* able to pass the output of a workspace (where your HTML report is created) into parameters for the "Send an email" Action in FME Server Automations.

I would recommend following the approach suggested by @virtualcitymatt to either use the Emailer transformer, or to use the Notifications feature in FME Server by triggering an Email Subscription via Topics.

*Our developers are investigating the ability to pass through output from Workspaces in FME Server Automations to give you more control and customizability downstream... it's very early days, and changes are currently targeted for FME Server 2020.0.


Hi @deepbhari, you are not yet* able to pass the output of a workspace (where your HTML report is created) into parameters for the "Send an email" Action in FME Server Automations.

I would recommend following the approach suggested by @virtualcitymatt to either use the Emailer transformer, or to use the Notifications feature in FME Server by triggering an Email Subscription via Topics.

*Our developers are investigating the ability to pass through output from Workspaces in FME Server Automations to give you more control and customizability downstream... it's very early days, and changes are currently targeted for FME Server 2020.0.

@rylanatsafe​ I have just found this old post and am looking to add my HTML report as the body of my Emailer email, is this possible here in 2022?


@rylanatsafe​ I have just found this old post and am looking to add my HTML report as the body of my Emailer email, is this possible here in 2022?

You can put HTML in the body of an email that you're making with the Emailer transformer. There's a couple of things that may not work, if I recall correctly most of that is due to email clients restricting e.g. scripting and external references out of security concerns.


@rylanatsafe​ I have just found this old post and am looking to add my HTML report as the body of my Emailer email, is this possible here in 2022?

I'll echo the response from @Hans van der Maarel​ —you can add HTML to the body of the email with the Emailer transformer, but best to do some testing for what is going to make it through mail servers.


Reply