我经常在 Gmail 中发送文件,以便在不同计算机之间交换文件。 很麻烦。 我想快速发送我的文件,例如错误日志。 我发现了一篇关于 Mutt 的很有前途的文章 [1],但它显然不是我想要的:
请注意,mutt 是纯粹的 MUA
并且无法在没有正确的情况下发送电子邮件
电子邮件服务器。
我想要没有电子邮件服务器,因为我无法将其安装到客户的计算机上。 我不需要知道发件人。 我想快速将许多错误日志发送到我的 Gmail。 我看起来像:
mutt -s“许多错误日志”-a
./log1 -a ./log2 -a ./log3 [电子邮件受保护]
我真的很想在终端里做这份工作。 在 Gmail 中批量发送文件太耗时。 如何快速发送大量文件?
[1] http://www.cyberciti.biz/tips/sending-mail-with-attachment.html
I regularly send files in Gmail to exchange files between different computers. It is cumbersome. I want quickly to send my files, such as error logs. I found a promising article [1] about Mutt, but it apparently is not what I want:
Please note that mutt is a pure MUA
and cannot send e-mail without proper
email server .
I want no email server, since I cannot install it to my clients' computers. I don't need to know the sender. I want quickly to send many error logs to my Gmail. I am looking something like:
mutt -s "Many error logs" -a
./log1 -a ./log2 -a ./log3 [email protected]
I would really love to do the job in terminal. It is too time-consuming to bulk-send files in Gmail. How can I quickly send a great amount of files?
[1] http://www.cyberciti.biz/tips/sending-mail-with-attachment.html
发布评论
评论(3)
Mutt 可以配置为使用与默认
sendmail
不同的 MTA。 您可以安装 SSMTP(此处进行了描述,并且可供下载此处)或ESMTP 并配置将其直接发送到 Gmail 的网络服务器,然后将 Mutt 配置为使用 SSMTP 或 ESMTP。 对此进行了很好的描述这个 Ubuntu 教程。 如果无法安装系统范围的二进制文件,您应该能够将 SSMTP 或 ESMTP 安装到本地文件夹。如果您更喜欢脚本,mimesend,这是一种Perl 的 MIME-tools 包 中的示例程序的功能与您的相同mutt 命令,可能会被黑客攻击以连接到 Gmail 的网络服务器。
Mutt can be configured to use a different MTA than the default
sendmail
. You could install SSMTP (described here and available for download here) or ESMTP and configure it to send directly to Gmail's web server, then configure Mutt to use SSMTP or ESMTP. This is nicely described in this Ubuntu tutorial. If installing systemwide binaries isn't an option, you ought to be able to install SSMTP or ESMTP to a local folder.If you prefer scripting, mimesend, which is one of the example programs in Perl's MIME-tools package, does the same thing as your mutt command and could be hacked to connect to Gmail's web server.
您为什么要使用电子邮件? 其他选项:
Why are you using email for this? Other options:
假设您不想按照上面的建议使用 ftp/scp,以下是我解决类似问题的方法...从客户端通过电子邮件发送日志:
我在我的服务器上创建了一个能够发送邮件的 CGI 脚本事情给我自己。 一种电子邮件代理网络服务。
客户端发布了它需要发送(显然还需要身份验证)到该 cgi 脚本的文件。
这样客户端只需要与我的服务器对话,而不是与邮件服务器对话。
也许这有帮助。
-大学教师
assuming that you don't want to use ftp/scp as suggested above, here is how i solved a similar problem ... emailing logs from a client:
i created a cgi script on my server that had the ability to mail things to myself. a sort of email proxy webservice.
the client posted the files it needed to send (along with authentication, obviously) to that cgi script.
that way the client only needs to talk to my server instead of talking to a mail server.
perhaps this helps.
-don