
該文件對我來說不是很清楚,因為發送電子郵件時添加了多個電子郵件地址作為密件副本和副本。
我應該使用:
-b [email protected] -b [email protected]
或者
-b [email protected] [email protected]
或者電子郵件應該用逗號分隔嗎?
答案1
文件(手冊頁)說:
mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] [-b addr] [-c addr] [-a file [...] --] addr|mailto_url [...]
這意味著-c addr
必須為每個重複完整的切換副本接收者,並且-b addr
對於每個密件副本接受者。
例外情況是以下列表到命令呼叫結束時的接收者,不需要任何開關。
答案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