You are not logged in.

#1 2016-12-11 05:34:05

Santechnick
Member
Registered: 2016-12-11
Posts: 1

S-nail: how to send in HTML

I'm sending some server reports to myself and want them to be formatted with a monospace font. I haven't found any options in the S-nail command line to do that. I've tried to add a MIME header into the text but it doesn't help:

str="$(cat mailheader.txt)"
echo "$str" | sudo mail -v -A email -s "Report" xxx@xxx.com

mailheader.txt content is:

MIME-Version: 1.0
Content-Type: text/html
Content-Disposition: inline
<html>
<body>
<pre style="font: monospace">
TEST - IT SHOULD BE IN MONOSPACE FONT.
</pre>
</body>
</html>

It comes with all headers/footers just included to the message as a plain text.
So, the question is, are there any options to force S-nail to send a message in HTML format?

Offline

Board footer

Powered by FluxBB