send email using telnet
来源:互联网 发布:linux升级网卡驱动 编辑:程序博客网 时间:2024/06/11 17:28
- Open your command prompt.
- Now, connect with telnet using the following command:
telnet example.com 25
- Type ehlo example.com. Some servers also accept helo in place of ehlo.
ehlo example.com
- Type mail from: username@example.com:
mail from: username@example.com
- Type rcpt to: friend@hotmail.com, friend2@yahoo.com (replace with your actual recipient name):
rcpt to: friend@hotmail.com, friend2@yahoo.com
- To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter:
dataSubject: My Telnet Test EmailHello,This is an email sent by using the telnet command.Your friend,Me.
- Type quit to exit telnet.
Sample:
[c:\~]$ telnet 138.35.54.172 25
Connecting to 138.35.54.172:25...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
220 smtpx.svcs.hpe.com ESMTP Postfix
500 5.5.2 Error: bad syntax
500 5.5.2 Error: bad syntax
ehlo 138.35.54.172
250-smtpx.svcs.hpe.com
250-PIPELINING
250-SIZE 31457280
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: xia@hpe.com
250 2.1.0 Ok
rcpt to: xia@hpe.com
250 2.1.5 Ok
data
502 5.5.2 Error: command not recognized
data
354 End data with <CR><LF>.<CR><LF>
Subject: Test mail
Hellow ord!!!
.
250 2.0.0 Ok: queued as E634075E02CA
Connecting to 138.35.54.172:25...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
220 smtpx.svcs.hpe.com ESMTP Postfix
500 5.5.2 Error: bad syntax
500 5.5.2 Error: bad syntax
ehlo 138.35.54.172
250-smtpx.svcs.hpe.com
250-PIPELINING
250-SIZE 31457280
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: xia@hpe.com
250 2.1.0 Ok
rcpt to: xia@hpe.com
250 2.1.5 Ok
data
502 5.5.2 Error: command not recognized
data
354 End data with <CR><LF>.<CR><LF>
Subject: Test mail
Hellow ord!!!
.
250 2.0.0 Ok: queued as E634075E02CA
阅读全文
0 0
- send email using telnet
- Send an email using Telnet
- Send Email Using Gmail
- using System.Web.Mail to send email
- Send Email Using Gmail (Continued) - Testing
- How to send email using sqlserver
- Accessing IMAP email accounts using telnet.
- send email using esmtp by windows command window
- How to send email via vbs using cdo
- Using exchange server to send email in Powershell
- send email
- send email
- Email--Send
- Send Email
- prjSendMailInUniversity - How to send email using VB & Winsock - 邮件发送接收程序 - VB6 + Winsock
- Save an XML File to Database and Send an Email using XSLT
- The IP you're using to send email is not authorized
- How to send an email from oracle workflow process using an AdHocRole?
- java堆内存和栈内存的区别
- 中金所面试题目之找出只出现一次数字
- 习题30
- C#—获取网络时间
- Backpropagation
- send email using telnet
- 关于如何通过apktool获取apk package name(包名)以及activity name
- Linux system temp
- 调试远程tomcat服务器
- 1.3为什么要用框架开发
- 练习54
- vs2005 warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
- C#泛型介绍
- java使用POI设置单元格内容下拉框选择和单元格提示功能