hello!
How are you sending the attachment?
@itay By using standard tools kit (FMEServerEmailGenerator--->FMEServerNotifier).
The original file size is 1.78 Mb, but I recieve only 260 bytes...
@itay By using standard tools kit (FMEServerEmailGenerator--->FMEServerNotifier).
The original file size is 1.78 Mb, but I recieve only 260 bytes...
If you are on FME 2016 you can better use the Emailer transformer, seems to me more of an pdf creation issue that mailing, can you verify that the pdf is properly created without sending the mail?
If you are on FME 2016 you can better use the Emailer transformer, seems to me more of an pdf creation issue that mailing, can you verify that the pdf is properly created without sending the mail?
I am on FME 2015 and pdf is properly created in the specified directory, but attached file is broken.
How are you firing the notification? FMEServerNotifier or writing an output to a writer connected to the topic?
I presume you are doing the second and have your writer order for that notification service at the bottom of the writers?
A couple of screenshots would be good.
I use standard couple of tools: FMEServerEmailGenerator--->FMEServerNotifier.
The first one generates message and defines attachment as direct link to re-writable PDF file/as user parameter. FMEServerNotifier pulls through topic to send an email.
For both situations I have the same result (260 bytes instead 1.78 Mb).
Ok, I suspect that the Notifier is firing before the PDF writes. Instead of using a Notifier, replace with a text file writer and connect into that (make sure that text writer is under the pdf writer in the Navigator, so that it will write after the pdf has created).
Then when you publish to FME Server, under the particular service you are using (e.g. jobsubmitter) choose edit and choose the relevant topic for the email, and select the text file writer at the value to be posted.
Give that a try and see how it goes.
I use standard couple of tools: FMEServerEmailGenerator--->FMEServerNotifier.
The first one generates message and defines attachment as direct link to re-writable PDF file/as user parameter. FMEServerNotifier pulls through topic to send an email.
For both situations I have the same result (260 bytes instead 1.78 Mb).
Yes I agree with @todd_davis, the pdf is created AND the mail is sent at the same time.
Just make sure, as stated, that the order of the writers is pdf first and then the notification text file.
See the following article for a 2015 configuration:
https://knowledge.safe.com/content/kbentry/23226/index.html
I use standard couple of tools: FMEServerEmailGenerator--->FMEServerNotifier.
The first one generates message and defines attachment as direct link to re-writable PDF file/as user parameter. FMEServerNotifier pulls through topic to send an email.
For both situations I have the same result (260 bytes instead 1.78 Mb).
Note that in modern FME's, you would use the FeatureWriter to create the PDF and then do the notification thereafter.