【文件属性】:
文件名称:pm2-notify:SMTP PM2通知程序
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-08 17:46:51
JavaScript
它是如何工作的?
我们正在监听pm2总线自动事件(不会发送手动出口)。 发生退出事件时,我们会将pm2进程环境保留在队列中。 然后使用著名的通过SMTP通过电子邮件发送这些元素。
模板可以自定义,如果您想使用其他邮件协议,请随时研究代码! 它旨在以最少的配置即可使用,但不能满足所有人的需求。
如果您需要更好的电子邮件交互,请查看 !
配置
mail:
from: "me@example.com"
to: "you@example.com"
# see https://github.com/andris9/nodemailer-smtp-transport#usage
smtp:
host: "smtp.gmail.com"
port: 25
# Events list:
# - restart
# - delete
# - stop
# - resta
【文件预览】:
pm2-notify-master
----.gitignore(25B)
----README.md(3KB)
----template.md(193B)
----test()
--------throw.js(66B)
----LICENSE(669B)
----package.json(497B)
----index.js(3KB)
----config.example.yml(845B)