Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix uses sendEmail to send email

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Vim / home/zabbix/bin/mail.sh

#! / bin/bash

SMTP_server='smtp.163.com' # SMTP server

Username='m14718177839' # user name

Password='20190214fang' # password

From_email_address='463245818@qq.com' # Sender Email address

To_email_address= "$1" # recipient Email address, the first parameter passed in by zabbix

Message_subject_utf8= "$2" # message header, the second parameter passed in by zabbix

Message_body_utf8= "$3" # message content, the third parameter passed in by zabbix

# convert the email title to GB2312 to solve the problem that the email title contains Chinese and the received email shows garbled codes.

Message_subject_gb2312= `iconv-t GB2312-fUTF-8

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report