The problem is in both the script and the input.
The mail contains quotes this gives errors so at least all the quotes should be removed from the text in the mail body.

But this is off topic. Will do some searching and testing for a different solution.
I still support a replace function build into the kix exe.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.