how to add multiple address CC and BCC in MUTT
The documentation is not very clear to me as sending an email adding multiple email address as BCC and CC.
Should I use:
-b [email protected] -b [email protected]
or
-b [email protected] [email protected]
or should the emails be comma separated?
Documentation (man page) says:
mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] [-b addr] [-c addr] [-a file [...] --] addr|mailto_url [...]
which means that the complete -c addr
switch must be repeated for each Cc recipient, and -b addr
for each Bcc recipient.
The exception being the list of To recipients at the end of the command invocation, which need no switches.
For any option of mutt
:
mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] [-b addr] [-c addr] [-a file [...] --]
if you have multiple arguments following, you can use quotation marks "
and commas ,
to separate the individual commands within the same group. For example
-e "set content_type=text/html, realname='John Citizen'"
-b "[email protected], [email protected]"
Full command:
mutt -e "set content_type=text/html, realname='John Citizen'" -s "This is some subject" -- "this_is_the_email_you_want_to_send_to@recipients_email_address.com, [email protected], [email protected]" < /home/dir/some_directory/the_HTML_file_you_want_to_send.html