简体   繁体   English

如何使用uuencode发送附件?

[英]how to send attachment with uuencode?

I am trying to send an attachment with uuencode, but I do not receive anything in my inbox: 我正在尝试发送带有uuencode的附件,但是收件箱中什么也没有收到:

uuencode test.txt test.txt | mail -s "test" test@gmail.com

I just get a response saying: "You have new mail in /var/mail/user 我刚收到一条回复:“您在/ var / mail / user中有新邮件

Does anyone know how to correct this? 有谁知道如何纠正这个问题? I too realize that uuencode might not be used as much now, so if anybody could recommend sending attachments another way, it would be much appreciated. 我也意识到uuencode可能现在不被广泛使用,因此如果有人可以建议以其他方式发送附件,将不胜感激。

Perhaps it is not recognizing the txt file input? 也许是无法识别txt文件输入?

Thank you. 谢谢。

The way you are doing it looks correct. 您执行的方式看起来正确。 check logs what is really happen after sending. 检查日志发送后实际发生了什么。 If you get anything, then it looks more than mail server error. 如果您得到了任何东西,那么它看起来不仅仅是邮件服务器错误。

also if you do get something, but not the attachment-then problem would be in MUA - eg program you are using to read emails. 同样,如果您确实得到了一些东西,但附件却没有,那么问题就出在MUA中-例如,您用来阅读电子邮件的程序。 Some of them get smart and remove the uu part, but not smart enought to add it as attachment. 他们中的一些人变得聪明,删除了uu部分,但不够聪明,无法将其添加为附件。

mailx should show the uu part unchanged. mailx应该显示uu部分不变。

UPDATE 更新

for alternative chech this: 替代检查:

https://unix.stackexchange.com/questions/102092/mail-send-email-with-attachment-from-commandline https://unix.stackexchange.com/questions/102092/mail-send-email-with-attachment-from-commandline

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM