使用 Telnet 从 gmail 发送电子邮件 [英] Send email from gmail using Telnet
问题描述
我在 windows 上工作,我已经启用了 telnet 客户端
I am working on windows and I have enabled telnet client
在 cmd 提示符下:
In cmd prompt:
$telnet smtp.gmail.com 587
220 mx.google.com ESMTP dk3sm50678627pbc.32 - gsmtp
$Helo
250 mx.google.com at your service
$ mail from: <myuser@gmail.com>
530 5.7.0 Must issue a STARTTLS command first. dk3sm50678627pbc.32 - gsmtp
$ STARTTLS
220 2.0.0 Ready to start TLS
$ mail from:
C:Users{myuser}>
Connection to host lost.
不知道是什么问题?
谁能帮帮我,我如何使用命令行的telnet从gmail服务器发送电子邮件>
Can anyone help me out , how i can send emails from gmail server using telnet from command line >
推荐答案
smtp.gmail.com 需要 TLS.windows 自带的基本 telnet 客户端不知道如何与服务器协商 TLS.您可能希望使用能够协商 TLS 的 openssl.见 http://www.madboa.com/geek/openssl/#cs-smtp 举例说明如何做到这一点.
smtp.gmail.com requires TLS. The basic telnet client that comes with windows does not know how to negotiate TLS with a server. You may want to use openssl instead, which is able to negotiate TLS. See http://www.madboa.com/geek/openssl/#cs-smtp for an example of how to do this.
这篇关于使用 Telnet 从 gmail 发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!