小编Vin*_*eet的帖子

Uuencode 在电子邮件正文中显示文件内容,而不是在附件中附加文件

我想在电子邮件中以附件形式发送一个简单的文本文件。发送电子邮件时,附件丢失,而是在电子邮件正文中显示附件的内容。需要建议修复它请。

这是我的输入:

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)

command-line email mailx

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

command-line ×1

email ×1

mailx ×1