sendmail linux code example
Example 1: linux mail command
mail -s "This is the subject" [email protected] <<< 'This is the message'
Example 2: sendmail "-x" sample
echo "Subject: hello" | sendmail -v [email protected] < mail.txt
mail -s "This is the subject" [email protected] <<< 'This is the message'
echo "Subject: hello" | sendmail -v [email protected] < mail.txt