The problem is that with the sendmail option, I can change the 'from:'
address
but I can't change the subject line. With the 'mail' command, I can change
the subject line but I can't change the darn 'From:' address. Does anyone
know of a SIMPLE way that I can do both?
(echo "Subject: test message"; echo; cat messagebody.txt) | /usr/sbin/sendmail \
-f myself@xxxxxxxxxx -O NoRecipientAction=add-to recipient@xxxxxxxxxx
If you're using somehing like perl, python, tcl or C, then there are SMTP libraries that will let you do whatever you please with originators, recipients and headers.
jch
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list