Configuring and Managing MPE/iX Internet Services (August 2002)

Chapter 10
Sendmail for MPE/iX
Sending E-mail
197
2. shell/iX> /bin/cat - >message.txt
To: someuser@some.host
Cc: otheruser@other.host
Bcc: secretuser@another.host
Subject: hello world
Hi,
How is everybody doing?
:EOD
3. shell/iX> /SENDMAIL/CURRENT/SENDMAIL -t <message.txt
Note that Sendmail is merely a passive Mail Transport Agent and doesnt give you any message composition
functionality to create things such as attachments. If you want to create attachments, you must manually
create all of the necessary message headers yourself. These Multipurpose Internet Mail Extensions (MIME)
headers are described in RFCs 2045-2049. RFCs are available from many places on the Internet; the official
central repository is http://www.rfc-editor.org/. Some scripting languages contain tools to make MIME
content generation easier -- for a Perl example, please see
http://search.cpan.org/search?module=MIME::Lite (Perl is not supported by HP).
If the mail daemon isnt running when a local user submits a new e-mail message, the message will be queued
in the /var/spool/clientmqueue directory which will be processed the next time the mail daemon job is
started. Otherwise, the new message is sent to the mail daemon via TCP port 25, and the daemon queues the
message in the /var/spool/mqueue directory and then attempts immediate delivery.