[root@localhost bin]# cd
[root@localhost ~]# ls
anaconda-ks.cfg sendEmail-v1.56 sendEmail-v1.56.tar.gz
[root@localhost ~]# cd sendEmail-v1.56
[root@localhost sendEmail-v1.56]# ls
CHANGELOG README README-BR.txt sendEmail sendEmail.pl TODO
[root@localhost sendEmail-v1.56]# cp -p sendEmail /usr/local/bin/
2、先测试是否可以发邮件
[root@localhost bin]# sendEmail -f gf502148677@163.com -t gf502148677@tom.com -s smtp.163.com -xu gf502148677@163.com -xp ******** -u "Test email" -m "Hi gf'com, this is a test email."
Feb 08 03:10:18 localhost sendEmail[3335]: Email was sent successfully!