免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1848 | 回复: 0
打印 上一主题 下一主题

利用SendEmail来发邮件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-03 15:14 |只看该作者 |倒序浏览

                                利用SendEmail来发邮件
About SendEmail
             SendEmail is a lightweight, command line
SMTP email client. If you have the need to send email from a command
line, this free program is perfect: simple to use and feature rich. It
was designed to be used in bash scripts, batch files, Perl programs and
web sites, but is quite adaptable and will likely meet your
requirements. SendEmail is written in Perl and is unique in that it
requires NO MODULES. It has an intuitive and flexible set of
command-line options, making it very easy to learn and use.
             [Supported Platforms: Linux, BSD, OS X, Windows 98, Windows NT, Windows 2000, & Windows XP]
            
            
Download
            
                 Official Release:
sendEmail-v1.56.tar.gz
   (29kb Sep 29th, 2009)   
Changelog
   
Screen Shot
            
             Windows Download:
             Free sendEmail.exe for Windows.  To use simply run sendEmail.exe from a console / command line.
            
sendEmail-v156-notls.zip
   (677kb Sep 29th, 2009)   No TLS support
            
sendEmail-v156.zip
   (1.4mb Sep 29th, 2009)   TLS supported
功能比较强大,是基于perl语言写的。
下载最新版 wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz
安装方法:
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
        
      
      
      
      
         
              
              
              
An Email Program for Sending SMTP Mail from a Command Line

     
         
            
           
About
  |
           
Download
   |
           
Installation
  |
           
TLS
  |
           
FAQ
  |
           
Releases
      
            
            
About SendEmail
             SendEmail is a lightweight, command line
SMTP email client. If you have the need to send email from a command
line, this free program is perfect: simple to use and feature rich. It
was designed to be used in bash scripts, batch files, Perl programs and
web sites, but is quite adaptable and will likely meet your
requirements. SendEmail is written in Perl and is unique in that it
requires NO MODULES. It has an intuitive and flexible set of
command-line options, making it very easy to learn and use.
             [Supported Platforms: Linux, BSD, OS X, Windows 98, Windows NT, Windows 2000, & Windows XP]
            
            
Download
            
                 Official Release:
sendEmail-v1.56.tar.gz
   (29kb Sep 29th, 2009)   
Changelog
   
Screen Shot
            
             Windows Download:
             Free sendEmail.exe for Windows.  To use simply run sendEmail.exe from a console / command line.
            
sendEmail-v156-notls.zip
   (677kb Sep 29th, 2009)   No TLS support
            
sendEmail-v156.zip
   (1.4mb Sep 29th, 2009)   TLS supported
            
             RPM Package:
sendEmail rpm
            
            
            

            
            
Command Line Options
             SendEmail has the following command line options:
            

例如:
sendEmail  -t zhangyong@XXX.com.cn -f chenwm@XXX.com.cn -s smtp.XXX.com:25 -xu username -xp passward -m MESSAGE -u SUBJECT  
这样可以通过本地linux上对外发邮件。可以把本地的sendmail关闭了,service sendmail stop
参考:http://caspian.dotconf.net/
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/40226/showart_2138299.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP