#!/bin/bash CONTENT="This is the content" SUBJECT="This is the subject" TO_ADDRESS=destination_email_address_here FROM_ADDRESS=source_email_address_here echo $CONTENT | mail -s $SUBJECT $TO_ADDRESS -- -r $FROM_ADDRESSNote:
The -- delimits that the options following it are piped to sendmail
No comments:
Post a Comment