Sendmail: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 22: Line 22:
  '''2. Python 2.6:''' #!/usr/bin/env python2.6
  '''2. Python 2.6:''' #!/usr/bin/env python2.6
  '''3. Python    :''' #!/usr/bin/env python
  '''3. Python    :''' #!/usr/bin/env python
  '''4. Perl      :''' #!/usr/bin/env perl
  '''4. Ruby      :''' #!/usr/bin/env ruby
'''5. Perl      :''' #!/usr/bin/env perl
'''6. PHP      :''' #!/usr/bin/env php


==References==
==References==

Revision as of 22:30, 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
env command is to launch interpreters
1. Python 3.9: #!/usr/bin/env python3.9
2. Python 2.6: #!/usr/bin/env python2.6
3. Python    : #!/usr/bin/env python
4. Ruby      : #!/usr/bin/env ruby
5. Perl      : #!/usr/bin/env perl
6. PHP       : #!/usr/bin/env php

References