Sendmail: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 15: Line 15:
==Knowledge==
==Knowledge==
  /usr/sbin/sendmail -t < filename.eml
  /usr/sbin/sendmail -t < filename.eml
/usr/sbin/sendmail -v -t < filename.eml
/usr/sbin/sendmail -Am -v -t < filename.eml


==References==
==References==

Revision as of 21:47, 30 July 2021

cat << EOF | sendmail -t 
Sender: [email protected]
From: Sender <[email protected]>
Reply-To: Sender <[email protected]>
To: To <[email protected]>
CC: Cc <[email protected]>
Disposition-Notification-To: [email protected]
Subject: Generic Subject

Generic Body
EOF

Knowledge

/usr/sbin/sendmail -t < filename.eml
/usr/sbin/sendmail -v -t < filename.eml
/usr/sbin/sendmail -Am -v -t < filename.eml

References