If you look at the function, you will see that the array contains an element for the message. The message can be multi-line. Since Blat doesn't like multi-line messages on the command line, the function is smart enough to see a multi-line message and write it to a temporary file. This file becomes the argument to Blat, which it happily digests. After Blat completes, the function removes the temp file.
There are many more Blat functions available, such as attachments, that my function doesn't support. These would be easy to implement by expanding the input array and adding the logic to the function. I'd be willing to review and update these if they are needed, as it would make the function more globally useful.
Glenn
_________________________
Actually I
am a Rocket Scientist!