使用SendEmail在命令行发送邮件
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-03-26
如果你需要在命令行发送电子邮件,这个小工具很适合你.它不需要任何特殊模块.也不需要启用本地sendmail进程,它有一个直观灵活的命令行选项,这使它非常容易使用!解压之后就能使用,参数如下:http://caspian.dotconf.net/menu/Software/SendEmail/ 1) Extract the package tar -zxvf sendEmail-v1.XX.tar.gz 2) Copy the sendEmail script to /usr/local/bin cp -a sendEmail-v1.XX/sendEmail /usr/local/bin 3) Make sure its executable chmod x /usr/local/bin/sendEmail 4) Run it sendEmail or /usr/local/bin/sendEmail --------------- Usage Overview --------------- sendEmail-1.56 by Brandon Zehm <caspian@dotconf.net> Synopsis: sendEmail -f ADDRESS [options] Required: -f ADDRESS from (sender) email address * At least one recipient required via -t, -cc, or -bcc * Message body required via -m, STDIN, or -o message-file=FILE Common: -t ADDRESS [ADDR ...] to email address(es) -u SUBJECT message subject -m MESSAGE message body -s SERVER[:PORT] smtp mail relay, default is localhost:25 Optional: -a FILE [FILE ...] file attachment(s) -cc ADDRESS [ADDR ...] cc email address(es) -bcc ADDRESS [ADDR ...] bcc email address(es) -xu USERNAME username for SMTP authentication -xp PASSWORD password for SMTP authentication Paranormal: -b BINDADDR[:PORT] local host bind address -l LOGFILE log to the specified file -v verbosity, use multiple times for greater effect -q be quiet (i.e. no STDOUT output) -o NAME=VALUE advanced options, for details try: --help misc -o message-content-type=<auto|text|html|other> -o message-file=FILE -o message-format=raw -o message-header=HEADER -o message-charset=CHARSET -o reply-to=ADDRESS -o timeout=SECONDS -o username=USERNAME -o password=PASSWORD -o tls=<auto|yes|no> -o fqdn=FQDN Help: --help the helpful overview you''re reading now --help addressing explain addressing and related options --help message explain message body input and related options --help networking explain -s, -b, etc --help output explain logging and other output opt |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于使用SendEmail在命令行发送邮件的所有评论