thunderbird 使用命令行发邮件


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=[email protected]
    • subject=cool page
    • attachment=www.mozilla.org
    • attachment='file:///c:/test.txt'
    • body=check this page
  • Multiple message options are separated by comma (,), for example: "[email protected],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='[email protected],[email protected]',subject=cool page" .

关键三点:

命令选项的参数(如-compose的参数)必须是两引号

消息参数(to, subject)必须用逗号分隔,前后都不能有空格

包括“,"的value域必须用单引号

你可能感兴趣的:(command,File,Parameters)