Skip to content

Instantly share code, notes, and snippets.

@AnsonYe
AnsonYe / zabbix-alert-smtp.sh
Last active September 23, 2019 18:55 — forked from superdaigo/zabbix-alert-smtp.sh
Zabbix SMTP Alert script for gmail and Amazon SES
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Zabbix SMTP Alert script for gmail and Amazon SES.
"""
import sys
import smtplib
from email.MIMEText import MIMEText
from email.Header import Header