EMAILUX
Section: User Commands (1)
Updated: April 2003
Index
Return to Main Contents
NAME
emailux - SMTP/SMTP_AUTH client
SYNOPSIS
emailux
[-f|--from fromaddr]
[-t|--to toaddrs]
[-c|--cc ccaddrs]
[-s|--subject subject]
[-b|--msgbody msgbody]
[-m|--msgfile msgfile]
[-a|--attach attach]
[-H|--smtphost smtphost]
[-P|--smtpport smtpport]
[-u|--username username]
[-p|--password password]
[-C|--conf conffile]
[-D|--debug debuglevel]
[-h|--help]
DESCRIPTION
Emailux sends an e-mail connecting directly
with a predefined SMTP server. Emailux supports two
protocols: SMTP and SMTP_AUTH.
Here are the set of options emailux supports:
- -f|--from fromaddr
-
E-mail address which we are sending mail from.
- -t|--to toaddrs
-
Comma-separated set of destination addresses to be used in
e-mail to field.
- -c|--cc ccaddrs
-
Comma-separated set of destination addresses to be used in
e-mail cc field.
- -s|--subject subject
-
E-mail subject.
- -b|--msgbody msgbody
-
Body of message which we want to mail. This text will be the
body of our message. If specified, --msgfile option will
be ignored.
- -m|--msgfile msgfile
-
File name which we want to mail. This file will be the body
of our message. If --msgbody and --msgfile are
not defined, STDIN will be used.
- -a|--attach attach
-
File name which we want to attach to the e-mail. This option
can be specified as many times as desired.
- -H|--smtphost smtphost
-
Host name we will use to send e-mail. By default, localhost
will be used.
- -P|--smtpport smtpport
-
Port name we will use to send e-mail. By default, 25.
- -u|--username username
-
Username used to authenticate with SMTP server. If defined,
SMTP_AUTH will be used to send e-mail. If not defined,
SMTP will be used to send e-mail.
- -p|--password password
-
Password used to authenticate with SMTP server. Only used
if username is defined.
- -C|--conf conffile
-
File used to read configuration from. This file can define
from, smtphost, smtpport, username
and password.
- -D|--debug debuglevel
-
This option is mainly used by developers. Valid values are
0 (no debug), 1 (debug) and 2 (so much debug).
- -h|--help
-
Causes emailux to exit immediately, after giving a summary
of its invocation options.
EXAMPLES
If you want to send current date, you can use:
$ emailux --to 'john@foo.bar' --subject 'Date' --msgbody "`date`"
If you want to send /tmp directory listing:
$ ls /tmp | emailux --to 'john@foo.bar' --subject 'ls /tmp'
If you want to attach some file:
$ emailux --to 'john@foo.bar' --subject 'My photo' --msgbody 'My photo'
--attach my_photo.jpg
AUTHOR
This program has been written by Sergio Fernández
(sfmunoz@teleline.es).
SEE ALSO
emailuxcfg(1), emailuxrc(1).
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- EXAMPLES
-
- AUTHOR
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 11:16:45 GMT, April 20, 2003