Newlines not being interpreted when passed to php via the command line
- by CarbonX
I have a PHP script that I'm invoking from another shell script that sends an automated email with a message generated from the shell script. Problem is, when I send the message all the newline characters are printed into the message. How do I get them to be interpreted?
sendmail.sh:
/path/to/phpscript/sendmail.php "Some Message With…