Discussion:
How to send HTML mail alerts...
Roberto Ferreira
2012-03-29 14:32:18 UTC
Permalink
Roberto Ferreira [http://community.zenoss.org/people/robeferre] created the discussion

"How to send HTML mail alerts..."

To view the discussion, visit: http://community.zenoss.org/message/65622#65622

--------------------------------------------------------------
Hello guys,

     IŽve configured Zenoss at my company infrastructure, all traps working properly, but I really want to send HTML mails instead the simpla message that Zenoss offers. If anyone could help me IŽll really appreciate.

    Take a look at my code:

<html>
<head>
</head>
<body>
<table width="100%" border="0"><tr><td width="80%" style="BACKGROUND:#C60139" class="msg-subtitle"><span style="color:white">Centro Estrela Brazil</span></td><td width="20%" style="BACKGROUND:#C60139" align="center"><span style="color:white">ENGINEERING</span></td></tr></table>
<table width="100%" border="0">
<tr><td width="20%">Publico Alvo</td><td width="80%">Time Centro Estrela Brasil</td></tr>
<tr style="BACKGROUND:#efefef"><td>Device</td><td>%(device)s</td></tr>
<tr><td>Component</td><td>%(component)s</td></tr>
<tr style="BACKGROUND:#efefef">    <td>Severity:</td><td>%(severityString)s</td></tr>
<tr><td>Time:</td><td >%(firstTime)s</td></tr>
<tr style="BACKGROUND:#efefef"><td >Message:</td><td>%(message)s</td></tr>
<tr><td><BR></td><td></td></tr>
<tr><td><a href="%(eventUrl)s">Event Detail</a></td></td>
<tr><td><a href="%(ackUrl)s">Acknowledge</a></td></td>
<tr><td><a href="%(deleteUrl)s">Delete</a></td></td>
<tr><td><a href="%(eventsUrl)s">Device Events</a></td></tr>
</table>
<p>--<BR>Centro Estrela Brasil<BR>Mensagem automatica, nao responder</p>
</body>
</html>

When a alert arrives at my mail box, it comes with the following message:

     "Error formatting event body: unsupported format character '"' (0x22) at index 47"

Any ideas?


Cheers,

Roberto Ferreira Junior
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65622#65622]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...