Hi Alex, I tried out the code you listed for sending email and got the following error on row 978, col 1: if: error in command (function) row 978, col 1: script: bad statement (function) <?lc --line 978 is: function shellEscape pText ?>