How can i change the format for e-mail alert.
I use a custom script to send emails and I had that problem as well. What I do prior to sending the email via the custom script is parse out the HTML using sed. It replaces the <BR> tag with a newline and removes all other items that are in the format "<anything>". BBALPHAMSG=`echo -e "$BBALPHAMSG" | sed -e 's/<BR[^>]*>/\n/'g -e 's/<[^>]*>//g'` On Wed, Mar 9, 2011 at 8:24 AM, Geoff Hallford <user-dc9e7f30b1e2@xymon.invalid>wrote:
I use a custom script to send emails and I had that problem as well. What I do prior to sending the email via the custom script is parse out the HTML using sed. It replaces the <BR> tag with a newline and removes all other items that are in the format "<anything>". BBALPHAMSG=`echo -e "$BBALPHAMSG" | sed -e 's/<BR[^>]*>/\n/'g -e 's/<[^>]*>//g'` *"We have now sunk to a depth at which restatement of the obvious is the first duty of intelligent men*" --George Orwell On Tue, Mar 8, 2011 at 2:55 PM, Josh Luthman < user-4c45a83f15cb@xymon.invalid> wrote:As a side note I use SMS format to my mobile via text (that is, being on Verizon user-d9a687bc666a@xymon.invalid). Works quite well. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Tue, Mar 8, 2011 at 2:32 PM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:Also, I'm sending this data as EMAIL to pagers, phone, mail accounts. SMS format may not even be needed since I'm altering the standard output to fit our needs. From: Nordquist, Daniel [user-b7c65cb59f49@xymon.invalid] Sent: Tuesday, March 08, 2011 11:14 AM To: Tim McCloskey; xymon at xymon.com Subject: RE: [Xymon] How can i change the format for e-mail alert. Doesn't the format=sms strip the subject from the email?