zoukankan      html  css  js  c++  java
  • 发邮件,mail

    [root@iZiu7zvk05r2opZ ~]# mail mailuser
    Subject: test
    hello world   
    .
    EOT
    [root@iZiu7zvk05r2opZ ~]# systemctl start sendmail
    [root@iZiu7zvk05r2opZ ~]# 

    可在mailuser用户查看

    [mailuser@iZiu7zvk05r2opZ ~]$ mail
    Heirloom Mail version 12.5 7/5/10.  Type ? for help.
    "/var/spool/mail/mailuser": 2 messages 2 new
    >N  1 root                  Mon Feb  8 17:12  26/1065  "test01"
     N  2 root                  Mon Feb  8 17:13  22/878   "test"
    & 

    按1 2查看邮件,按q退出

    方法二,重定向发送邮件

    [root@iZiu7zvk05r2opZ ~]# mail -s "test01" mailuser < /etc/hosts

    -s 以xxx为标题 发给xxx用户 < 文件内容

  • 相关阅读:
    C++ 中的深入浅拷贝和深拷贝
    C++ 引用小问题
    6-10
    6-8
    6-7
    6-4
    6-3
    6-1
    5-31
    COMException 依赖服务或组无法启动(0x8007042C)处理办法
  • 原文地址:https://www.cnblogs.com/yxlll/p/14389690.html
Copyright © 2011-2022 走看看