首页 > 代码库 > mailx邮件

mailx邮件

RHEL、CentOS:

[root@lhz ~]#yum install mailx

[root@lhz ~]#vi /etc/mail.rc    

set from=名@163.com smtp=smtp.163.com

set smtp-auth-user=名@163.com smtp-auth-password=密

set smtp-auth=login

 Ubuntu:

[root@lhz ~]#sudo apt-get install heirloom-mailx

[root@lhz ~]#vi /etc/nail.rc   

set from=名@163.com smtp=smtp.163.com

set smtp-auth-user=名@163.com smtp-auth-password=密

set smtp-auth=login

 

mailx邮件