How to change the "From" field in sendmail
Hi,
I have to generate an email report that runs at regular intervals...no problem.
But I want to specify a "From" field.
I execute the command sendmail <recipient address> < mailbody.txt
Now in the file mailbody.txt I have the following:
Subject: Daily Report
From: "the messenger"
To: <group email address>
....and then the body of text.
It sends the report nicely and the subject appears as the email subject BUT it's always from "the messenger"@admin@localdomain.com or something like that. I would just like it to be something exactly as I type in (somewhere) like
From: The Bean Counter, or
From: Mission Control
or something like that.
Thanks for any guidance.
|