Sendmail: Difference between revisions
Jump to navigation
Jump to search
| Line 18: | Line 18: | ||
/usr/sbin/sendmail -t < filename.eml | /usr/sbin/sendmail -t < filename.eml | ||
'''env | '''launch interpreters by env or magic header''' | ||
'''1. Python 3.9:''' #!/usr/bin/env python3.9 | '''1. Python 3.9:''' #!/usr/bin/env python3.9 | ||
'''2. Python 2.6:''' #!/usr/bin/env python2.6 | '''2. Python 2.6:''' #!/usr/bin/env python2.6 | ||
Revision as of 04:38, 31 July 2021
cat << EOF | sendmail -t
Sender: no-reply@chorke.org
From: Sender <from@chorke.org>
Reply-To: Sender <from@chorke.org>
To: To <to@chorke.org>
CC: Cc <cc@chorke.org>
Disposition-Notification-To: to@chorke.org
Subject: Generic Subject
Generic Body
EOF
Knowledge
/usr/sbin/sendmail -Am -v -t < filename.eml /usr/sbin/sendmail -v -t < filename.eml /usr/sbin/sendmail -t < filename.eml
launch interpreters by env or magic header 1. Python 3.9: #!/usr/bin/env python3.9 2. Python 2.6: #!/usr/bin/env python2.6 3. TS Node : #!/usr/bin/env ts-node 4. Python : #!/usr/bin/env python 5. Node JS : #!/usr/bin/env node 6. Ruby : #!/usr/bin/env ruby 7. Perl : #!/usr/bin/env perl 8. PHP : #!/usr/bin/env php