Linux 邮件附件添加

在linux编程时,有时需要通过系统中已有的邮件客户端进行附件添加。

1. Thunderbird

/usr/lib/thunderbird/thunderbird -compose attachment='/tmp/simple-scan-75G3Z0/scan.jpeg'

2. Evolution

evolution mailto:?attach=/tmp/simple-scan-37CK00/scan.jpeg

evolution mailto:aaa@kylinos.cn?cc=aaa@kylinos.cn?subject="test3"&body="evolution test3."&attach="/xxx/hpscan002.png"

3. claws-mail

claws-mail 命令行添加附件会直接报错。

claws-mail mailto:?attach=/home/yusq/scanner01.jpg
作者:yusq77

-------------------------------------------

Wish you all the best and good health in 2021.

原文地址:https://www.cnblogs.com/yusq77/p/14554784.html