  | |  | Linux email | Linux email 2004-02-11 - By Jason Dale
Back Thanks Michael, This worked nicely ;)
J
-- --Original Message-- -- From: shrike-list-admin@(protected) [mailto:shrike-list-admin@(protected)]On Behalf Of Michael Fratoni Sent: 11 February 2004 01:52 PM To: shrike-list@(protected) Subject: Re: Linux email
-- --BEGIN PGP SIGNED MESSAGE-- -- Hash: SHA1
On Wednesday 11 February 2004 04:19 am, Jason Dale wrote: > Hi, > > This is not really a Linux OS question per se, but it involves > just sending mail from the command line on a Linux system. > > I use the following two methods: > > /bin/cat messagebody.txt | /usr/sbin/sendmail -f myself@(protected) -O > NoRecipientAction=add-to > recipient@(protected)
[...]
> 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?
Using sendmail, you can put the subject in the text file.
/usr/sbin/sendmail -f nosuchuser@(protected) -O NoRecipientAction=add-to validuser@(protected) < mail.txt
Where mail.txt contains:
Subject: Test message
This is a test, this is only a test. Had this been an actual message, it would have contained useful data.
The result the recipient sees:
Test message Date: Wed, 11 Feb 2004 06:34:45 -0500 From: nosuchuser@(protected) To: [..snip...]
This is a test, this is only a test. Had this been an actual message, it would have contained useful data.
- -- - -Michael
pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3}|8.0|9 in 8M of RAM: http://www.rule-project.org/en/ - -- -- --BEGIN PGP SIGNATURE-- -- Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQFAKheGn/07WoAb/SsRAhCMAJ41poej6AWSQatq5pzsxXrQUcxlswCbBOKg WZ/jOJumubBGq7H7z4fCdms= =YeFH -- --END PGP SIGNATURE-- --
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |