LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mutt replacing sender name (https://www.linuxquestions.org/questions/linux-server-73/mutt-replacing-sender-name-4175715068/)

mfoley 07-26-2022 01:59 AM

mutt replacing sender name
 
I have the following muttrc:
Code:

set envelope_from_address="Brian Smith <briansmith71@gmail.com>"
set use_envelope_from=yes

I am sending an email to me as:
Code:

EMAIL="briansmith71@gmail.com" mutt -F ./muttrc -e 'set content_type="text/html"' -s "Odd emails" mfoley@novatec-inc.com < textfile2
but when I get this email at mfoley@novatec-inc.com it has:
Code:

From briansmith71@gmail.com  Tue Jul 26 02:56:20 2022
Date: Tue, 26 Jul 2022 02:56:19 -0400
From: Mark Foley <briansmith71@gmail.com>
To: mfoley@novatec-inc.com
Subject: Odd emails

Why is it putting my name in the From: address instead of "Brian Smith"?

mfoley 07-26-2022 02:55 AM

I figured it out. I have to do: EMAIL="Brian Smith <briansmith71@gmail.com>". That is, include the person's name in the EMAIL env var.


All times are GMT -5. The time now is 06:17 PM.