我想在电子邮件中以附件形式发送一个简单的文本文件。发送电子邮件时,附件丢失,而是在电子邮件正文中显示附件的内容。需要建议修复它请。
这是我的输入:
bash-4.1$ cat test.txt
HelloWorld !
bash-4.1$ uuencode test.txt test_attachment.txt|mailx -s 'testing' mail@mail.com
Run Code Online (Sandbox Code Playgroud)
这是电子邮件上的输出:
begin 664 test_attachment.txt
/2&5L;&]7;W)L9"`A(`H*
`
end
Run Code Online (Sandbox Code Playgroud)