首页 最新文章网站服务器Shell正文

sendEmail的安装

[root@iZ23opiaj56Z alidata]# wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz

--2019-02-02 11:05:57--  http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz

正在解析主机 caspian.dotconf.net... 159.89.153.157

Connecting to caspian.dotconf.net|159.89.153.157|:80... 已连接。

已发出 HTTP 请求,正在等待回应... 200 OK

长度:29740 (29K) [application/octet-stream]

Saving to: `sendEmail-v1.56.tar.gz'


100%[=======================================================================================================================================================================================>] 29,740      80.7K/s   in 0.4s    


2019-02-02 11:05:57 (80.7 KB/s) - `sendEmail-v1.56.tar.gz' saved [29740/29740]


[root@iZ23opiaj56Z alidata]# tar -zxvf sendEmail-v1.56.tar.gz

sendEmail-v1.56/

sendEmail-v1.56/CHANGELOG

sendEmail-v1.56/README

sendEmail-v1.56/README-BR.txt

sendEmail-v1.56/TODO

sendEmail-v1.56/sendEmail

sendEmail-v1.56/sendEmail.pl

[root@iZ23opiaj56Z alidata]# cd sendEmail-v1.56

[root@iZ23opiaj56Z sendEmail-v1.56]# cp sendEmail /usr/local/bin

[root@iZ23opiaj56Z sendEmail-v1.56]# ll /usr/local/bin/sendEmail

-rwxr-xr-x 1 root root 80213 02-02 11:06 /usr/local/bin/sendEmail

[root@iZ23opiaj56Z sendEmail-v1.56]# 

[root@iZ23opiaj56Z sendEmail-v1.56]# sendEmail -f itservice@kaixinbao.com -t "abc@qq.com" -s smtp.qq.com -u '测试主题' -o message-content-type=html -o message-charset=utf8 -xu dev@qq.com -xp '3423445' -m "邮件内容"

bash: sendemail: command not found

[root@iZ23opiaj56Z sendEmail-v1.56]# ln -s /usr/local/bin/sendEmail /usr/bin


[appuser@iZbp1ionhm5ibc0g2e0832Z ~]$ sendEmail -o tls=yes -f itservice@kaixinbao.com -t "liuxiangtao@kaixinbao.com" -s smtp.kaixinbao.com:587 -u '测试主题' -o message-content-type=html -o message-charset=utf8 -xu itservice@kaixinbao.com -xp 'xxx -m "邮件内容"

Aug 01 10:43:27 izbp1ionhm5ibc0g2e0832z sendEmail[9304]: ERROR => No TLS support!  SendEmail can't load required libraries. (try installing Net::SSLeay and IO::Socket::SSL)




评论

精彩评论
觉得有用就打赏吧
关注本站公众号,享受更多服务!
联系方式
QQ:2727987445
地址:中国·辽宁
Email:2727987445#qq.com
Copyright2015-2024.Powered by ©️云水客 | 网站地图 | 辽ICP备14000512号-5