ax-zabbix-html-template
ax-zabbix-html-template copied to clipboard
UTF8 support
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
@dimuskin Any idea on this?
@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