thunderbird -compose "to=xxx,subject=xxx,attachment=file:///path/to/file,body=xxx"
https://developer.mozilla.org/en/Command_Line_Options
But first, let's describe the syntax rules that apply for all options.
- Command parameters containing spaces must be enclosed in quotes; for example, "Joel User".
- Command actions are not case sensitive.
- Command parameters except profile names are not case sensitive.
- Blank spaces ( ) separate commands and parameters.
- Each message option follows the syntax
field=value, for example:to=foo@nowhere.netsubject=cool pageattachment=www.mozilla.orgattachment='file:///c:/test.txt'body=check this page
- Multiple message options are separated by comma (,), for example:
"to=foo@nowhere.net,subject=cool page". Comma separators must not follow or precede spaces ( ). To assign multiple values to a field, enclose the values in single quotes ('), for example:"to='foo@nowhere.net,foo@foo.de',subject=cool page".
关键三点:
命令选项的参数(如-compose的参数)必须是两引号
消息参数(to, subject)必须用逗号分隔,前后都不能有空格
包括“,"的value域必须用单引号
本文详细介绍了如何在Thunderbird中使用compose命令发送带有附件的邮件,包括邮件参数的语法规则,如to, subject, attachment等的正确使用方法。

6668

被折叠的 条评论
为什么被折叠?



