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 |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
To send email that is in fixed font you can use: | To send email that is in fixed font you can use: | ||
<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< | # (echo "Subject: bla"; echo "MIME-Version: 1.0"; echo "Content-Type: text/html"; echo "Content-Disposition: inline"; echo '<html><body><pre>The code element<SLASHpre></body></html>') | sendmail joop@hotmail.com | ||
</pre> | |||
Mind the /pre here. |
Latest revision as of 12:03, 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<SLASHpre></body></html>') | sendmail joop@hotmail.com
Mind the /pre here.