[Xymon] email add-on other than html_mail.pl?
Scot Kreienkamp
Scot.Kreienkamp at la-z-boy.com
Tue Mar 24 16:59:40 CET 2020
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | * 734-384-6403 | | * 1-734-915-1444 | * Scot.Kreienkamp at la-z-boy.com
www.la-z-boy.com<http://www.la-z-boy.com> | facebook.com/lazboy<http://facebook.com/lazboy> | twitter.com/lazboy<http://twitter.com/lazboy> | youtube.com/lazboy<http://youtube.com/lazboy>
[cid:4C-lzbVertical_Tag_400px_d8b9412e-f3ea-46a1-99dc-a7c57261e11e.jpg]
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Becker Christian
Sent: Tuesday, March 24, 2020 11:34 AM
To: xymon at xymon.com
Subject: [Xymon] email add-on other than html_mail.pl?
ATTENTION: This email was sent to La-Z-Boy from an external source. Be vigilant when opening attachments or clicking links.
Hello to the list,
i'm looking for another email add-on to Xymon (or another script) other than html_mail.pl which I'm currently using.
The html_mail.pl works fine, but now I'm in the situation to send emails to a MS Teams subchannel, and the result is useless, because it's totally mis-formatted in MS Teams.
I tried using the Xymon built-in mail function without html_mail.pl, but this is also not really nice, I'ld like to have at least the red / yellow / green icons together with a black background.
My knowledge isn't good enough to modify html_mail.pl to my needs.
Any idea?
Stay at home - stay healthy!
Best regards from Germany
Christian
[Scot Kreienkamp]
Here's a simple HTML email template I wrote in bash script a few years ago. You can customize it to your needs quite easily.
#!/bin/bash
SENDEMAIL="/usr/sbin/sendmail -f xymon at la-z-boy.com -t"
EMBOUND=asdf1234
$SENDEMAIL << EOF
To: ${RCPT}
From: xymon at yourdomain.com
Subject: ${SUBJECT}
Content-Type: multipart/related;
boundary=${EMBOUND};
type="Text/HTML"
MIME-Version: 1.0
--${EMBOUND}
Content-Type: text/html; charset=US-ASCII
<html>
<body>
<pre>
Pre-formatted text here
</pre>
HTML here
</body>
</html>
EOF
This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200324/82d874b4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4C-lzbVertical_Tag_400px_d8b9412e-f3ea-46a1-99dc-a7c57261e11e.jpg
Type: image/jpeg
Size: 591045 bytes
Desc: 4C-lzbVertical_Tag_400px_d8b9412e-f3ea-46a1-99dc-a7c57261e11e.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200324/82d874b4/attachment-0001.jpg>
More information about the Xymon
mailing list