使用 Telnet 从 gmail 发送电子邮件

编程入门 行业动态 更新时间:2024-10-27 20:35:33
本文介绍了使用 Telnet 从 gmail 发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 windows 上工作,我已经启用了 telnet 客户端

I am working on windows and I have enabled telnet client

在 cmd 提示符下:

In cmd prompt:

$telnet smtp.gmail 587 220 mx.google ESMTP dk3sm50678627pbc.32 - gsmtp $Helo 250 mx.google at your service $ mail from: <myuser@gmail> 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 需要 TLS.windows 自带的基本 telnet 客户端不知道如何与服务器协商 TLS.您可能希望使用能够协商 TLS 的 openssl.见 www.madboa/geek/openssl/#cs-smtp 举例说明如何做到这一点.

smtp.gmail 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 www.madboa/geek/openssl/#cs-smtp for an example of how to do this.

更多推荐

使用 Telnet 从 gmail 发送电子邮件

本文发布于:2023-10-07 10:24:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469131.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发送电子邮件   Telnet   gmail

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!