使用linux 命令行发送邮件 发表于 2018-02-02 | 分类于 Linux | 使用linux 命令行发送邮件 安装发送邮件1yum install mailx 配置发送在 /etc/mail.rc 添加123456789set from=xxx@qq.cnset smtp=smtp.exmail.qq.comset smtp-auth-user=xxx@qq.cnset smtp-auth-password=xxxxset smtp-auth=login 测试1echo 'test' | mail -s 'test' xxxx@qq.cn