Newbie here,
I'm trying to send myself an email notification with a custom body/subject for notification of important events. Is this possible? I've tried a few things in the script below.
Thanks in advance and apologies if this is not how this listing works! - Daniel
---- Script ---- .... #SBATCH --mail-user= example@example.example #SBATCH --export=ALL #SBATCH --mail-type=ALL
# Both of these work which mail which mailx EMAIL="example@example.example"
# Attempt 1 echo "Test email body" | mail -s "Test Subject" "$EMAIL"
# Attempt 2 mail -s "hello" "$EMAIL" <<EOF hello world EOF
# Attempt 3 echo "Specific Information" | mail -s "SLURM Job information" $EMAIL ---- End ----