ax-zabbix-html-template icon indicating copy to clipboard operation
ax-zabbix-html-template copied to clipboard

UTF8 support

Open maxlehot1234 opened this issue 6 years ago • 2 comments

Hi, is it possible to add support for UTF8 into your html?

The actual utf8 meta doesn't work.

I try multiple meta and same issue. Maybe it was something from the script or zabbix?

Do you have an idea for this?

Thanks again

maxlehot1234 avatar Jan 17 '19 13:01 maxlehot1234

@dimuskin Any idea on this?

maxlehot1234 avatar Jan 29 '19 13:01 maxlehot1234

@dimuskin We got the same problem and solved it by adding -o message-charset=utf-8 at the end of the html_email.sh script. The complete script should look like this:

#!/bin/sh
export [email protected]
export zabbixemailto="$1"
export zabbixsubject="$2"
export zabbixbody="$3"
export smtpserver=localhost # or your SMTP server
export smtplogin=SMTP_LOGIN
export smtppass=SMTP_PASSWORD
/usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject \-m $zabbixbody -s $smtpserver:25  -o tls=no \-o message-content-type=html -o message-charset=utf-8

Syoxx47 avatar May 27 '19 16:05 Syoxx47