
複数のメール アドレスを BCC および CC として追加してメールを送信する方法についてのドキュメントは、私にはよくわかりません。
使用すべきもの:
-b [email protected] -b [email protected]
または
-b [email protected] [email protected]
それともメールアドレスはコンマで区切るべきでしょうか?
答え1
ドキュメント(man ページ)には次のように書かれています:
mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] [-b addr] [-c addr] [-a file [...] --] addr|mailto_url [...]
つまり、-c addr
各スイッチごとに完全な切り替えを繰り返す必要がある。CC受信者、そして-b addr
各Bcc受信者。
例外は、にコマンド呼び出しの最後に受信者を指定します。スイッチは必要ありません。
答え2
いずれかのオプションの場合mutt
:
mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] [-b addr] [-c addr] [-a file [...] --]
複数の引数が続く場合は、同じグループ内の個々のコマンドを引用符"
とカンマ,
で区切ることができます。例:
-e "set content_type=text/html, realname='John Citizen'"
-b "[email protected], [email protected]"
フルコマンド:
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