cancel
Showing results for 
Search instead for 
Did you mean: 
Rob Foster Member
Member

sending low res attachment on email with blat

Hi

I am successfully able to take the low res file and send it to an email address with blat using these parameters

-attach "$FFin$" -to XXX.XXXXX@XXXXXXXXXX.com -subject "blat test" -body "this is my message" -server XXX.XX.X.X -f XXX.XXXXX@XXXXXXXXXX.com

 

But the file that is attached to the email is names "temp.pdf" which is not the filename, does anybody know why that would be?

Thanks

Rob

Tags (1)
0 Kudos
9 Replies
FreeFlow Production Workflow Moderator DavidU54339-XRX
FreeFlow Production Workflow Moderator

Re: sending low res attachment on email with blat

When a job is processed through the workflow, the filename at time it finishes a node is “temp.pdf”. I assume you are using an external node to initiate the blat processing. You could add as a variable in the External node $FFwfjob.jobName$ or perhaps $FFwfDoc.inputFileName$ and then copy the file from $FFin$ and rename it based on $FFwfjob.jobName$.pdf.

0 Kudos
Highlighted
Rob Foster Member
Member

Re: sending low res attachment on email with blat

Hi David

ive tried adding a few different variables , but anything i add to the external node other than wjhats there at the moment ends in a fail on the freeflow file queue, could i get a little more info on how these variables should be strung together, i feel im missing something

Thanks

Rob

0 Kudos
FreeFlow Production Workflow Moderator DavidU54339-XRX
FreeFlow Production Workflow Moderator

Re: sending low res attachment on email with blat

A possibility is $FFin$ is being renamed in the external node. It needs to remain temp.pdf. You want to copy $FFin$ and then rename the copy -- leaving $FFin$'s name alone.

0 Kudos
Rob Foster Member
Member

Re: sending low res attachment on email with blat

Hi There

Sorry to revisit this one after such a long time, but ive been asked to make it work, would you be able to assist me in getting this to work?

im not quite sure what "A possibility is $FFin$ is being renamed in the external node. It needs to remain temp.pdf. You want to copy $FFin$ and then rename the copy -- leaving $FFin$'s name alone." means or how i would implement it.

Any help really appreciated

Rob

0 Kudos
FreeFlow Production Workflow Moderator DavidU54339-XRX
FreeFlow Production Workflow Moderator

Re: sending low res attachment on email with blat

A possible solution a .bat that copies the $FFin$ to a new location using the $FFwfDoc.inputFileName$ variable as the pdf name. Then using this copied file to send via blat.

Batch script:

:: Save_wDir.bat - for FF Core external process
:: save FF Core output file
:: Call with "$FFin$" "$FFout$" "BaseDir" "$FFwfDoc.inputFileName$"
:: echo %date% %time% %1 %2 %3
setlocal
set BaseDir="%3"
set FileName="%~n1.pdf"
set NumPath="%FileName:~0,7%"
mkdir %BaseDir%\%NumPath%
copy %1 %BaseDir%\%NumPath%\"%FileName%"
::-attach %BaseDir%\%NumPath%\"%FileName% -to XXX.XXXXX@XXXXXXXXXX.com -subject "blat test" -body "this is my message" -server XXX.XX.X.X -f XXX.XXXXX@XXXXXXXXXX.com

External node parameters:

blat.png

0 Kudos
Rob Foster Member
Member

Re: sending low res attachment on email with blat

Wow this is fantastic, im just waiting for the correct smtp details from our it before i can try it out

 

Thanks Again

0 Kudos
trexbrown94 New Member
New Member

Re: sending low res attachment on email with blat

Did you find correct smtp details? How to correct it?

0 Kudos
Rob Foster Member
Member

Re: sending low res attachment on email with blat

HI There David

 

So i got the smtp server sending, so i know its working, i created a batch script and added as per your instructions, as yet no email has come through , the file has been placed in C:\Temp and that file is called Temp.pdf

Should those steps in your script be enough to make blat work? or have i misinterpreted your instructions, I thought the script that is used in external had to be the blat.exe for it to work

Thanks

Rob

 

0 Kudos
FreeFlow Production Workflow Moderator DavidU54339-XRX
FreeFlow Production Workflow Moderator

Re: sending low res attachment on email with blat

Rob,

The script I provided should be producing a pdf with the FFCore filename at the C:\Temp directory. I am not familiar with blat. I was hoping that your knowledge of blat could enable an extension of the script to work with blat. Xerox Professional Services may be able to get your requirements met -- of course there is probably some sort of charge.

 

Dave

0 Kudos