Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the sender's name or e-mail address in mutt?

Tags:

unix

mutt

How can I change the sender's name or e-mail address (From: header) used by mutt?

like image 469
user1630087 Avatar asked Aug 28 '12 11:08

user1630087


People also ask

How do I change my address on my 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.

How do I change the email address in 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.

How does Mutt set the from header?

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.

How do I change the sender name in outlook?

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.

How do I change the sender and reply-to address?

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.


2 Answers

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.

like image 188
ArjunShankar Avatar answered Oct 07 '22 06:10

ArjunShankar


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!

like image 40
luanjunyi Avatar answered Oct 07 '22 07:10

luanjunyi