Change sender's address in mutt via console -
i want dynamically set sender's address when using mutt via console (not composing). checked described, tried this question nothing works. there no change @ all, no matter do. set
set from="sender@help.me" set edit_headers=yes
in both /etc/muttrc , ~/.muttrc, also, tried sort of -e commands, like
-e "set from=email@example.com" -e 'my_hdr from:sender@help.me' -e "send-hook . 'my_hdr from: other name <otheremail\@example.com>'" having export email=sender@help.me in front
but receive mails username@compname.de
a typical call looks this
export email="sender@help.me" && echo | mutt -s "versandtest" -c "mycc@help.me" -e 'my_hdr from:sender@help.me' -a /opt/data/yolodat.txt /opt/data/trolodat.txt -- "myaddress@help.me" < /tmp/mailbody
any more ideas appreciated
this works me:
export email="name <from@address.com>"; echo "test message body" | mutt -s "test subject" -- to@address.com;
Comments
Post a Comment