Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29110
  • 博文数量: 9
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-03 11:25
文章分类
文章存档

2014年(9)

我的朋友

分类: LINUX

2014-06-09 11:26:17

原文地址:利用SendEmail来发邮件 作者:chenwenming

                利用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

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