Re: Linux email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Dale wrote:

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

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux