NOTICE: TO ALL CONCERNED Certain text files and messages contained on this site deal with activities and devices which would be in violation of various Federal, State, and local laws if actually carried out or constructed. The webmasters of this site do not advocate the breaking of any law. Our text files and message bases are for informational purposes only. We recommend that you contact your local law enforcement officials before undertaking any project based upon any information obtained from this or any other web site. We do not guarantee that any of the information contained on this system is correct, workable, or factual. We are not responsible for, nor do we assume any liability for, damages resulting from the use of any information on this site.
#! /bin/csh -fB
### This is a simple shell script for easy use of anonymous mail. To run the
### program just save it and delete everything up until the #! /bin/csh -fB
### line. Then just type the name you save it as or the name and whoever
### you will be mailing. e.g. amail bill@some.university.edu or just amail.
###
if ($1 != "") then
set mto=$1
else
echo 'To: '
set mto=$<
endif
echo -n 'From: '
set mfrom=$<
echo -n 'Use which host for smtp (return for '`hostname`') ? '
set usehost=$<
echo -n 'Use which editor (return for vi)? '
set editor=$<
if($editor =="") then
set editor=vi
endif
if ($mfrom == "") then
set mfrom=`whoami`'@'`hostname`
endif
$editor tmpamail2
clear
echo -n 'Are you sure you want to send this? '
set yorn=$<
if($yorn == 'y') then
echo . >> tmpamail2
echo quit >> tmpamail2
cat tmpamail2 >> tmpamail1
telnet $usehost 25 < tmpamail1 > /dev/null
echo 'Mail has been sent to: '$mto
echo ' From: '$mfrom
endif
rm tmpamail1 tmpamail2
To the best of our knowledge, the text on this page may be freely reproduced and distributed. If you have any questions about this, please check out our Copyright Policy.