View Single Post
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#1
Hi all,

Here is my first attempt to package the latest version of SendEmail :

SendEmail :

SendEmail is a lightweight, command line SMTP email client.

Overview :

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.

Homepage :

http://caspian.dotconf.net/menu/Software/SendEmail/

Download packages from extra-devel :

Activate all repositories following this tutorial : Repositories Activation

Then, as usual, as root, install with :

Code:
-bash-2.05b# apt-get install sendemail libio-socket-ssl-perl libnet-ssleay-perl && sendemail --help
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libio-socket-ssl-perl is already the newest version.
libnet-ssleay-perl is already the newest version.
libnet-ssleay-perl set to manually installed.
The following packages were automatically installed and are no longer required:
  mbarcode-plugin-webrequest
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  sendemail
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/35,3kB of archives.
After this operation, 147kB of additional disk space will be used.
Selecting previously deselected package sendemail.
(Reading database ... 49997 files and directories currently installed.)
Unpacking sendemail (from .../sendemail_1.56-2maemo1_all.deb) ...
Setting up sendemail (1.56-2maemo1) ...

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>
        -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 options
    --help misc               explain -o options, TLS, SMTP auth, and more

-bash-2.05b#
After successful installation, just use it !!!


Hope you like it ...

A++
 

The Following 6 Users Say Thank You to colin.stephane For This Useful Post: