Skip to main content
Solved

im trying to send an email with a csv attached.


using FME Desktop, i have a workspace that looks at two databases and generates a csv with information from one database that is not found within the other database. i need to then send that csv file to someone via an email, however, the csv file contains 11k rows and the emailer is trying to send 11k emails. how do i send one email with the csv as an attachment?

Best answer by nielsgerrits

Use a FeatureWriter to write the CSV (11k records in, 1 record out) , connect the the Emailer downstream and add the file you just wrote as an attachment.

If you want to do it neat you can use a TempPathnameCreator to write the file to the temp so you don't have to clean up afterwards, but make it work without the TempPathnameCreator first, this is easier to build.

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

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Best Answer
  • October 7, 2021

Use a FeatureWriter to write the CSV (11k records in, 1 record out) , connect the the Emailer downstream and add the file you just wrote as an attachment.

If you want to do it neat you can use a TempPathnameCreator to write the file to the temp so you don't have to clean up afterwards, but make it work without the TempPathnameCreator first, this is easier to build.


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • October 7, 2021
nielsgerrits wrote:

Use a FeatureWriter to write the CSV (11k records in, 1 record out) , connect the the Emailer downstream and add the file you just wrote as an attachment.

If you want to do it neat you can use a TempPathnameCreator to write the file to the temp so you don't have to clean up afterwards, but make it work without the TempPathnameCreator first, this is easier to build.

Very nice. Good Job!


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