How to send email from command line in fixed font: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
# (echo "Subject: bla"; echo "MIME-Version: 1.0"; echo "Content-Type: text/html"; echo "Content-Disposition: inline"; echo '<html><body><pre>The code element</pre></body></html>') | sendmail joop@hotmail.com | # (echo "Subject: bla"; echo "MIME-Version: 1.0"; echo "Content-Type: text/html"; echo "Content-Disposition: inline"; echo '<html><body><pre>The code element</pre></body></html>') | sendmail joop@hotmail.com | ||
</pre> |
Revision as of 12:00, 30 September 2020
To send email that is in fixed font you can use:
# (echo "Subject: bla"; echo "MIME-Version: 1.0"; echo "Content-Type: text/html"; echo "Content-Disposition: inline"; echo '<html><body><pre>The code element
</body></html>') | sendmail joop@hotmail.com