Linux下mail命令使用总结
2009-10-29 17:34
721 查看
查看一下mail命令的帮助: man mail
mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr... [-- sendmail-options...]
参数说明:
(1)-s subject 指定要发送邮件的主题
(2)-c recient抄送
(3)-b recipients 秘密抄送(收件人间用逗号隔开)
(4)-- sendmail-options sendmail的一些选项,如
-F full_name 发件人全名
-f sender 设置信封上发件人的地址
举例如下:
mail -s "this is a test" -c test@hust.com -b test@test.com test@zy.com < eicar.txt -- -f test@test2.com -F zhangyang
向test@zy.com 发送一封邮件,主题为”This is a test”,发信人地址是test@test2.com,显示名为zhangyang,并抄送给test@hust.com,秘密抄送给test@test.com
mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr... [-- sendmail-options...]
参数说明:
(1)-s subject 指定要发送邮件的主题
(2)-c recient抄送
(3)-b recipients 秘密抄送(收件人间用逗号隔开)
(4)-- sendmail-options sendmail的一些选项,如
-F full_name 发件人全名
-f sender 设置信封上发件人的地址
举例如下:
mail -s "this is a test" -c test@hust.com -b test@test.com test@zy.com < eicar.txt -- -f test@test2.com -F zhangyang
向test@zy.com 发送一封邮件,主题为”This is a test”,发信人地址是test@test2.com,显示名为zhangyang,并抄送给test@hust.com,秘密抄送给test@test.com
相关文章推荐
- Linux mail命令使用用其他SMTP服务器发送邮件
- Linux下使用mail命令发送邮件
- linux使用mail命令发邮件—第三方smtp
- Linux下gcc、objdump、file命令使用方式总结
- linux 解压缩命令-归类总结及使用举例
- Linux下抓包命令tcpflow使用总结
- Unix/Linux中进程控制相关命令总结——&, jobs, fg, bg等命令的使用方法
- LINUX常用命令总结(一)--VI的使用
- linux中write和mail命令的使用小结
- Linux定时任务Crontab命令使用详解与总结
- Linux中find、xargs命令使用及方法总结
- Linux下使用mail命令发送邮件
- Linux上使用mail命令发送带附件邮件
- Linux下使用mail命令发送邮件
- linux中vi命令的常用参数使用总结
- linux中压缩命令使用总结
- Linux常用命令基本使用方法大总结
- Linux下使用mail命令发送邮件
- linux 操作系统中查看发送电子邮件mail命令的使用
- 使用Linux的mail命令发送邮件