Use sendEmail
$ sudo aptitude install sendEmail libio-socket-ssl-perl libnet-ssleay-perl
- Create a script 'zabbix_sendemail' (chmod 755) in the AlertScriptsPath folder specified by '/usr/local/etc/zabbix_server.conf'
#!/bin/sh
export smtpemailfrom=zabbix@yourdomain.com
export smtpserver=yoursmtpserver.com
export smtplogin=smtp_user
export smtppass=smtp_password
$ /usr/bin/sendEmail -f $smtpemailfrom -t $1 -u $2 -m $3 -s $smtpserver:25 -xu $smtplogin -xp $smtppass
- Set the Action (Configurations / Actions in the php frontend)
- Set the Media Type (Administration / Media types in the php frontend) script to zabbix_sendemail
- Add the Media to the user (Administration / Users / user in php frontend)