Le 21-07-2009, à 13:37:50 +0200, steve (dl...@bluewin.ch) a écrit : > Lignes : 19 > > > To the OP I only glanced at your attempt without reading the rest of > > your message. Having just previously been reading the ubuntu-user slop I > > also mistakenly assumed I was still reading that list. Looking at it > > again, I think you need to look at the -a option. > > > > mutt -s 'test' -a myfile.txt -- some...@gmail.com > > No, -a option is to attach a file to the message, I don't want that. I > want to specify the sender on the command line. > > > As for configuring what address will be sending the mail. That is on > > the .muttrc file. You can setup a second .muttrc_work or whatever and > > use -F .muttrc_work to use the new configuration. > > > This is a good idea I think. Thank you.
Following this idea, this worked for me : $ cat mutt-work set sendmail="/usr/sbin/sendmail -v -X /tmp/esmtp.log" set hostname="example.com" set use_domain set use_envelope_from Then mutt -s "test" -F /path/to/mutt-work -- to_some...@example < myfile.txt Have a nice day, Steve