Solved

Best way to insert content of a list into an email ?

  • 2 November 2016
  • 6 replies
  • 73 views

Userlevel 1
Badge +22

Hi,

I'm faced with sending circa 10000 emails to clients from FME. That's one email per user per feature.

There are only some 10 mail receivers, the huge number comes from sending them each many notifications.

If I want to gather all notifications into a single email per receiver, what is the best/easiest way to achieve that ?

I can aggregate the individual notification content into a list per receiver, but where to go from there ?

Cheers

 

Lars I
icon

Best answer by ciarab 2 November 2016, 13:39

View original

6 replies

Badge +9

I have been doing this with the html report generator-- creating a table which is grouped by User email- now my end users have signed up to receive notifications about different features. So I am grouping all features into a table that they are interested about

then using the html content built from the htmlreportgenerator in the emailer (body/content section) to send out to the data to the end users. So its only 1 email per customer with a list of all features.

Badge +22

If you are using FMEServer then I would look at the custom transformer FMEServerEmailGenerator, followed by a FMEServerNotifier.

 

 

If in desktop, there is the Emailer transformer, where you can set the Body of the email message to an attribute.
Userlevel 1
Badge +22

If you are using FMEServer then I would look at the custom transformer FMEServerEmailGenerator, followed by a FMEServerNotifier.

 

 

If in desktop, there is the Emailer transformer, where you can set the Body of the email message to an attribute.
Alas, no FME Server yet :-)

 

 

Userlevel 1
Badge +22

Hi all,

Thanks @ciarab for your suggestion.

I ended up creating a HTML document with a bulleted list for my items, and that worked fine.

But I also ran into some irritating formatting issues:

  1. The "HTML Report Generator" always generates a full HTML document. This makes it cumbersome to create a nice document.
  2. Any HTML tags in my textual parts are encoded, so I needed to makes multiple replacements on the transformer output to have it work ("<" => "<", ">" => ">" etc.)
  3. The output document is not very nice, as the text font is never set in the document.

I will make some suggestions for making this transformer better.

Cheers

 

Lars I
Badge +9

Hi all,

Thanks @ciarab for your suggestion.

I ended up creating a HTML document with a bulleted list for my items, and that worked fine.

But I also ran into some irritating formatting issues:

  1. The "HTML Report Generator" always generates a full HTML document. This makes it cumbersome to create a nice document.
  2. Any HTML tags in my textual parts are encoded, so I needed to makes multiple replacements on the transformer output to have it work ("<" => "<", ">" => ">" etc.)
  3. The output document is not very nice, as the text font is never set in the document.

I will make some suggestions for making this transformer better.

Cheers

 

Lars I
I completely agree with you Lars, found the same issue with the text font and having to go back in and try and change the font type. I'm hoping to see some changes in the next few releases myself!

 

 

Badge +22
I completely agree with you Lars, found the same issue with the text font and having to go back in and try and change the font type. I'm hoping to see some changes in the next few releases myself!

 

 

For these type of things I use the xml templater rather than the htmlReportGenerator, as it give me much finer control over the elements.

 

 

Reply