How can I change the sender's name or e-mail address (From:
header) used by mutt
?
before you send the email you can press <ESC> f (Escape followed by f) to change the From: Address. Constraint: This only works if you use mutt in curses mode and do not wan't to script it or if you want to change the address permanent.
before you send the email you can press <ESC> f (Escape followed by f) to change the From: Address. Constraint: This only works if you use mutt in curses mode and do not wan't to script it or if you want to change the address permanent.
Normally, mutt sets the From: header based on the from configuration variable you set in ~/.muttrc: If this is not set, mutt uses the EMAIL environment variable by default.
Here's how to change the sender name when you send an email in Outlook: Go to File and select Info. Select Account Settings > Account Settings. In the Account Settings dialog box, choose the email account you want to edit and select Change. In the Your Name text box, enter the name you want to appear in the From line of your emails.
Change the Sender: When composing a message, go to Home > New Email. Select the From drop-down menu and choose an account. Change the Reply-to address: Go to File > Info > Account Settings > Account Settings. Select Change and enter a new Reply-to address.
Normally, mutt sets the From:
header based on the from
configuration variable you set in ~/.muttrc
:
set from="Fubar <foo@bar>"
If this is not set, mutt
uses the EMAIL
environment variable by default. In which case, you can get away with calling mutt like this on the command line (as opposed to how you showed it in your comment):
EMAIL="foo@bar" mutt -s '$MailSubject' -c "abc@def"
However, if you want to be able to edit the From:
header while composing, you need to configure mutt
to allow you to edit headers first. This involves adding the following line in your ~/.muttrc
:
set edit_headers=yes
After that, next time you open up mutt and are composing an E-mail, your chosen text editor will pop up containing the headers as well, so you can edit them. This includes the From:
header.
If you just want to change it once, you can specify the 'from' header in command line, eg:
mutt -e 'my_hdr From:[email protected]'
my_hdr
is mutt's command of providing custom header value.
One last word, don't be evil!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With