1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh export smtpemailfrom=zabbix@kekeke.org export zabbixemailto="$1" export zabbixsubject="$2" export zabbixbody="$3" export smtpserver=mail.kekeke.org export smtplogin=zabbix@kekeke.org export smtppass=qwerty export email_log=/tmp/zabbix_email_log.log /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp $smtppass |