Centos7如何发送邮件

 时间:2024-10-13 13:38:01

1、安装sendmail:yum install -y sendmail

Centos7如何发送邮件

3、启动sendmail,发现报错:systemctl start sendmail发现是系统中安装了postfix,停止该服务,然后重启sendmail:systemctl stop postfixsystemctl restart sendmail

Centos7如何发送邮件

4、在xshell命令号中输入:echo "this is my test mail" | mail -s 媪青怍牙'mail test' xxxxx@126.com请替换成自己的邮箱地址,有的邮箱可能发送不成功,请自行测试。

Centos7如何发送邮件

6、发送成功,并成功接收。鉴于邮箱本身服务问题,步骤4中可能有些服务商的收件箱收不到邮件或者在垃圾邮件列表。

  • Linux怎么安装软件
  • 怎么解决vmware中虚拟机中无法使用键盘的故障?
  • 如何在ubuntu中安装jdk
  • putty如何设置文本颜色
  • 本地怎样一键安装php的运行环境
  • 热门搜索
    失眠是什么引起的 resume是什么意思 手肿是什么原因 404 not found什么意思 复合维生素b 什么是附件炎 运动会有感 无冕之王什么意思 圆的周长公式是什么 什么是车震