#!/bin/bash
MESSAGE="Line one. /n"
MESSAGE="$MESSAGE Line two. /n"
MESSAGE="$MESSAGE Line three."
echo $MESSAGE | mail -s "test" "example@example.com"
Is that how I should get each line, on its own line?
Use a heredoc.
mail -s "test" "example@example.com" << END_MAIL
Line one.
Line two.
Line three.
END_MAIL