'read -r -d '' message <<EOT' and blah blah blah worked for me...it is a little hard core bash scripting...