Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
f
fastmail(1) fastmail(1)
-d \
-F me@anotherhost.com \
-f My Name \
-i "Your recent message" \
-R REF:13579 \
-r oscar \
-s "Testing fastmail" \
message-file \
addr1 addr2 addr3 addr4
The online execution displays the following debug messages:
Mailing to addr1,addr2,addr3,addr4 cc1,cc2,cc3,cc4 bcc1,bcc2,bcc
3,bcc4 [via sendmail]
cat /tmp/fastmail.5578 message-file | /usr/sbin/sendmail addr1,a
ddr2,addr3,addr4 cc1,cc2,cc3,cc4 bcc1,bcc2,bcc3,bcc4
The received message has the following relevant header entries:
From realsender@mycomputer.myhost.com Tue Oct 22 21:14:04 EDT 1996
Subject: Testing fastmail
From: me@anotherhost.com (My Name)
Reply-To: oscar@mycomputer.myhost.com
To: addr1@mycomputer.myhost.com, addr2@mycomputer.myhost.com,
addr3@mycomputer.myhost.com, addr4@mycomputer.myhost.com
Cc: cc1@mycomputer.myhost.com, cc2@mycomputer.myhost.com,
cc3@mycomputer.myhost.com, cc4@mycomputer.myhost.com
References: REF:13579
In-Reply-To: Your recent message
Comments: Just a Comment
The Bcc: header entry is not transmitted.
A Batch Process
Suppose you are user big on machine big-machine and you have a shell script named batch-mail
that contains the following lines:
#
# Batch Mail - batch mailing of a file to a LOT of users
#
# Usage: batch-mail "<from>" "<subject>" <filename>
sender_copy=$LOGIN
replyto=The-Mr-Big-list
fastmail -b $sender_copy -r $replyto -f "$1" -s "$2" $3 person1
sleep 10
fastmail -r $replyto -f "$1" -s "$2" $3 person2
sleep 10
fastmail -r $replyto -f "$1" -s "$2" $3 person3
sleep 10
fastmail -r $replyto -f "$1" -s "$2" $3 person4
The command:
batch-mail "Mr. Big" "Warning to all" warning.text
would mail a copy of the warning.text file to person1, person2, person3, and person4, stag-
gered ten seconds apart.
$LOGIN would also silently receive a copy of the first message in the mail. Each resultant message would
include the header lines:
From: big@big-machine (Mr. Big)
Subject: Warning to all
Reply-To: The-Mr-Big-list
Section 1−−268 − 2 − HP-UX Release 11i: December 2000
___
___