【发布时间】:2012-01-24 08:41:46
【问题描述】:
可能重复:
How do I send a file as an email attachment using Linux command line?
我想在 linux 中使用 mail 命令发送带有文件附件的邮件。我试过这个:
mail foo@gmail.com < test.txt
但是 test.txt 是作为消息发送的,而不是作为附件发送的。我不想使用 mutt 或其他类型的邮件替代品。我也不想使用 uuencode。如何使用 bash 中的纯邮件命令发送文件附件?
【问题讨论】:
-
出于好奇,你为什么不想使用 mutt?它是此类工作的理想工具...
标签: linux file bash email attachment