通过telnet或SSH远程发送电子邮件到Linux [英] Remotely send email via telnet or SSH to Linux

查看:488
本文介绍了通过telnet或SSH远程发送电子邮件到Linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有专家,

我一直在寻找网络寻找上面提到的解决方案。但是我的实际请求没有运气。



通过Putty访问Linux并使用telnet会话命令提示符没有问题。连接到linux时,我想使用email命令发送电子邮件。 putty和命令提示符没问题。但是使用VB.net创建telnet / SSH会话,根本没有机会。



i在putty中执行如下所示:



登录:用户

密码:密码



[user @ server] $ mail user@email.com

主题:这是主题

这是消息



Cc:



[user @ server] $

解决方案

mail user@email.com

主题:这是主题

这是消息



Cc:



[user @ server]



你的问题有点模糊,没有明确说明。您不会向系统发送电子邮件,而是从系统上的用户名发送到电子邮件地址,这在大多数情况下都会在邮件服务器上发送。用户可以在客户端计算机上从服务器下载电子邮件消息。这三台机器(发件人,SMTP服务器,接收器)中的每一台都可以在几乎任何平台上:windows,mac,linux,other。



您的示例代码似乎试图从linux机器发送消息。有关PuTTY和SSH的内容与此无关。这段命令可能在前一段时间取得了更大的成功。电子邮件协议最初设计为乐于在任何地方发送几乎任何邮件,使用任何邮件中继,没有安全检查或帐户登录。然而,自20世纪90年代以来,各种安全问题和垃圾邮件怪物的崛起导致系统在没有重大授权的情况下阻止邮件传递,面对众多网关和防火墙,这些网关和防火墙都阻止了您的外发邮件。无法发送消息可能是由于众多原因造成的。



您需要提供更多详细信息才能正确回答您的问题。 ..

Dear all experts,
I have been looking though the web looking for the above mention solution. But no luck to my actually request.

I have no problem accessing to Linux via Putty and command prompt using telnet session. While connected to linux, I want to send email using "email command". No problem with putty and command prompt. But using VB.net to create telnet/SSH session, no chance at all.

i do it in putty as shown below:

Login: user
Password: password

[user@server]$ mail user@email.com
Subject: This is subject
this is message
.
Cc:

[user@server]$

解决方案

mail user@email.com
Subject: This is subject
this is message
.
Cc:

[user@server]



Your question is a little vague and not well stated. You don't send email messages to a system, you send from a username on a system to an email address, which (in most cases) ends up on a mail server. The email message can be downloaded from the server by a user on a client machine. Each of these 3 machines (sender, SMTP server, receiver) can be on just about any platform: windows, mac, linux, other.

Your example code seems to be attempting to send a message from a linux machine. The stuff about PuTTY and SSH are not relevant here. This command might have had more success some time ago. The email protocol was originally designed to be happy to send almost any message anywhere, using any mail relay, with no security checks or "account login". Since the 1990s however, various security problems and the rise of the spam monster have caused systems to prevent mail delivery without significant authorization, face numerous gateways and firewalls that all combine to block your outgoing messages. Failure to deliver a message can be caused by numerous reasons that all really need to be there.

You need to provide a few more details to have your question answered properly...


这篇关于通过telnet或SSH远程发送电子邮件到Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆