• I had a problem similar to this but when I tried to include a file attachment with the email. The solution was to execute the code on the server rather than from your profile. i.e. remotely login to the server and run it from there.