I have Automator running a shell script that ends with cat "tempfile.txt"
. The cat
command should output the contents of tempfile.txt
. The file tempfile.txt
contains just the following three paragraphs over five lines:
1st paragraph Lorem
2nd paragraph Lorem ipsum
3rd paragraph Ut enim
I have this chained in Automator to the "New Mail Message" action. The instructions for this action say that "If text is received from a previous action, the text is appended to the message."
The expected behavior is therefore that the body of the email message contains those three paragraphs. Instead, it contains only the third—shown here:
Below is the relevant part of the workflow. In it we can see in the Results for the shell script that all three paragraphs are being passed to the "New Mail Action." Why does this not put all of the input text file into the message body?
Update (further info): If I swap in the "Create New Outlook Mail Message" action in place of the Mail.app action, all three paragraphs are successfully passed to the body of the new message in Outlook. However, they are passed without line breaks.