shell脚本调用接口发送邮件
方法:使用curl命令
curl -X -POST -H "Content-Type:application/json" -H "Cache-control:no-cache" -H "Postman-Token:b5a360a8-38c7-466b-601a-584395b3c6a5" -d '{"appid":"20000","ip":"192.168.200.201","filename":"/wls/applog/app/rtlog/test.log"}' "http://22.9.99.88:8080/api/sensitive/"
# "http://22.9.99.88:8080/api/sensitive/"邮箱接口
curl 命令各项参数使用详见:https://www.cnblogs.com/guixiaoming/p/8507268.html