DACSEMAIL(1) | DACS Commands Manual | DACSEMAIL(1) |
dacsemail - Simple outgoing email agent
dacsemail [-bcc addr]
[{-bf | --bodyfile} path]
[{-bs | --bodystring} string]
[-cc addr]
[-ct value]
[{-f | --from} from] [-h |
--help] [-header name value]
[{-mailer | -mta} path]
[{-mailer-flags | -mta-flags} string]
[-p | --prompt] [-save path]
[{-s | --subject} subject]
[-sender sender]
[{-t | --to} addr]
[-transform] [-v | --verbose]
[-var name value]
dacsemail --version
This program is part of the DACS suite.
The dacsemail utility is a simple agent for sending email messages. It is a stand-alone program that neither accepts the usual DACS command line options (dacsoptions[1]) nor accesses any DACS configuration files.
dacsemail constructs an RFC 822[2] format message but does not transmit it. It requires an external mailer, such as sendmail(8)[3], to transfer the message. The mailer command and its arguments can be specified on the dacsemail command line (see -mailer) or at build time (see dacs.install(7)[4]).
If the source for the message body is not specified on the command line, it will be read from the standard input. At least one recipient must be specified using -t, -cc, or -bcc.
-bcc addr
-bf path
--bodyfile path
-bs string
--bodystring string
-cc addr
-ct value
-f from
--from from
-h
--help
-header name value
-mailer path
-mta path
-mailer-flags string
-mta-flags string
-p
--prompt
-save path
-s subject
--subject subject
-sender sender
-t addr
--to addr
-transform
-v
--verbose
--version
-var name value
Suppose myfile contains the following text:
<!--DACS expand="*" --> This is a multi-part message in MIME format. --${DACS::boundary} Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Hello, ${DACS::user}! --${DACS::boundary} Content-Type: text/html; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit <p> <font color="red">Hello, ${DACS::user}!</font> </p> --${DACS::boundary}-- <!--DACS end="*" -->
The following command might be used to send a message with a multipart/alternative structured body:
% dacsemail -ct multipart/alternative -f auggie@example.com \
-t harley@example.com -s "Hello" -transform -var user Auggie -bf myfile
The resulting message will look something like the following:
To: harley@example.com From: auggie@example.com Subject: Hello Content-type: multipart/alternative; boundary="_----------=_03885942562898683484" Date: Wed, 07 Apr 2010 16:48:41 -0700 (PDT) Content-transfer-encoding: 7bit X-mailer: DACS 1.4.24a This is a multi-part message in MIME format. --_----------=_03885942562898683484 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Hello, Auggie! --_----------=_03885942562898683484 Content-Type: text/html; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit <p> <font color="red">Hello, Auggie!</font> </p> --_----------=_03885942562898683484--
None.
The program exits 0 if everything was fine, 1 if an error occurred. Error messages are printed to stderr. Errors and routine messages from the mailer are recorded wherever they are normally logged, outside of DACS
This program's primary purpose is for testing DACS functionality that is needed for internal purposes. No significant improvements are envisioned. You could throw a rock and hit a better email agent.
dacs.exprs(5)[8], dacs.install(7)[4], dacs_transform(8)[5], sendmail(8)[3]
Distributed Systems Software (www.dss.ca[9])
Copyright © 2003-2018 Distributed Systems Software. See the LICENSE[10] file that accompanies the distribution for licensing information.
02/19/2019 | DACS 1.4.40 |