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=foo@nowhere.net
    • 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: "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域必须用单引号

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值