Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1378596
  • 博文数量: 112
  • 博客积分: 7112
  • 博客等级: 少将
  • 技术积分: 1299
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-31 16:27
文章分类

全部博文(112)

文章存档

2011年(19)

2010年(20)

2009年(16)

2008年(20)

2007年(37)

分类: LINUX

2010-01-03 15:14:48

                利用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:    (29kb Sep 29th, 2009)      

Windows Download:
Free sendEmail.exe for Windows. To use simply run sendEmail.exe from a console / command line.
   (677kb Sep 29th, 2009)   No TLS support
   (1.4mb Sep 29th, 2009)   TLS supported

功能比较强大,是基于perl语言写的。

下载最新版 wget
安装方法:
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 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:    (29kb Sep 29th, 2009)      

Windows Download:
Free sendEmail.exe for Windows. To use simply run sendEmail.exe from a console / command line.
   (677kb Sep 29th, 2009)   No TLS support
   (1.4mb Sep 29th, 2009)   TLS supported

RPM Package:

 

Command Line Options
SendEmail has the following command line options:
sendEmail 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

参考:
阅读(11970) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~