Home Backend Development PHP Tutorial RFC821-简单邮件传输协议(SMTP)中文版-3_PHP

RFC821-简单邮件传输协议(SMTP)中文版-3_PHP

Jun 01, 2016 pm 12:37 PM
ok r s Chinese Version transmission protocol Simple mail

SMTP

本文出自: 作者: (2001-11-23 09:08:00)
第二步:转发主机到目的主机

R: 220 BBN-VAX.ARPA Simple Mail Transfer Service Ready

S: HELO USC-ISIE.ARPA

R: 250 BBN-VAX.ARPA

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end with .

S: Received: from MIT-AI.ARPA by USC-ISIE.ARPA ;

2 Nov 81 22:40:10 UT

S: Date: 2 Nov 81 22:33:44

S: From: John Q. Public

S: Subject: The Next Meeting of the Board

S: To: Jones@BBN-Vax.ARPA

S:

S: Bill:

S: The next meeting of the board of directors will be

S: on Tuesday.

S: John.

S: .

R: 250 OK

 

S: QUIT

R: 221 USC-ISIE.ARPA Service closing transmission channel

  

确认和发送

R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY Crispin

R: 250 Mark Crispin

 

S: SEND FROM:

R: 250 OK

 

S: RCPT TO:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 SU-SCORE.ARPA Service closing transmission channel

  

获得和发送邮件 首先确定用户名,然后尝试将邮件发送到用户终端,
当它失败时,发送到用户邮箱。

R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY Crispin

R: 250 Mark Crispin

 

S: SEND FROM:

R: 250 OK

 

S: RCPT TO:

R: 450 User not active now

 

S: RSET

R: 250 OK

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 SU-SCORE.ARPA Service closing transmission channel

  

上述问题的更有效的作法  

R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY Crispin

R: 250 Mark Crispin

 

S: SOML FROM:

R: 250 OK

 

S: RCPT TO:

R: 250 User not active now, so will do mail.

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 SU-SCORE.ARPA Service closing transmission channel

  

  邮件列表 首先,两个邮件列表中的每一个在不同主机的不同会话上扩展,
然后,通过转发主机向列表上的用户发送邮件。

第一步:扩展第一个列表

R: 220 MIT-AI.ARPA Simple Mail Transfer Service Ready

S: HELO SU-SCORE.ARPA

R: 250 MIT-AI.ARPA

 

S: EXPN Example-People

R: 250-

R: 250-Fred Fonebone

R: 250-Xenon Y. Zither

R: 250-Quincy Smith

R: 250-

R: 250

 

S: QUIT

R: 221 MIT-AI.ARPA Service closing transmission channel

 

第二步:扩展第二个列表  

R: 220 MIT-MC.ARPA Simple Mail Transfer Service Ready  

S: HELO SU-SCORE.ARPA

R: 250 MIT-MC.ARPA

 

S: EXPN Interested-Parties

R: 250-Al Calico

R: 250-

R: 250-Quincy Smith

R: 250-

R: 250

 

S: QUIT

R: 221 MIT-MC.ARPA Service closing transmission channel

 

第三步:通过转发主机向包括于两个列表中的所有用户发送邮件  

R: 220 USC-ISIE.ARPA Simple Mail Transfer Service Ready

S: HELO SU-SCORE.ARPA

R: 250 USC-ISIE.ARPA

 

S: MAIL FROM:

R: 250 OK

S: RCPT TO:

R: 250 OK

S: RCPT TO:

R: 250 OK

S: RCPT TO:

R: 250 OK

S: RCPT

TO:

R: 250 OK

S: RCPT TO:

R: 250 OK

S: RCPT TO:

R: 250 OK

S: RCPT TO:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 USC-ISIE.ARPA Service closing transmission channel


转发的情况

R: 220 USC-ISIF.ARPA Simple Mail Transfer Service Ready

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISIF.ARPA

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: 251 User not local; will forward to

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 USC-ISIF.ARPA Service closing transmission channel

第一步:尝试第一台主机上的邮箱

R: 220 USC-ISIF.ARPA Simple Mail Transfer Service Ready

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISIF.ARPA

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: 251 User not local; will forward to

 

S: RSET

R: 250 OK

 

S: QUIT

R: 221 USC-ISIF.ARPA Service closing transmission channel

第二步:尝试第二台主机上的邮箱

R: 220 USC-ISI.ARPA Simple Mail Transfer Service Ready

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISI.ARPA

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: OK

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 USC-ISI.ARPA Service closing transmission channel

许多接收者的情况

R: 220 BERKELEY.ARPA Simple Mail Transfer Service Ready

S: HELO USC-ISIF.ARPA

R: 250 BERKELEY.ARPA

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: 250 OK

 

S: RCPT TO:

R: 552 Recipient storage full, try again in another transaction

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: MAIL FROM:

R: 250 OK

 

S: RCPT TO:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end with .

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

S: QUIT

R: 221 BERKELEY.ARPA Service closing transmission channel



名词表:


回车


空格

ASCII
美国标准信息交换码

主机
拥有SMTP进程或邮箱的网络计算机

发送SMTP进程
与接收SMTP进程一起工作的进程。发送SMTP开始传输服务连接,它发出
SMTP命令,接收应答,管理邮件的传送

用户
希望获得邮件服务的人(或以人的名义出现的进程),还有就是邮件的接收者。

会话
当传输信道打开时进行的一系列信息交换

传输服务
可靠的面向流的数据通信服务。例如:NCP,TCP,NITS。

传输信道
在发送SMTP和接收SMTP之间建立的全双工的用于交换命令,应答和邮件内容的信道

字符
可显示字符串


以一个结束的邮件内容

应答
接收SMTP对发送SMTP的通过传输信道发送的的对某一命令的(成功或不成功的)
响应。应答的一般格式是应答码加一段文本。通常情况下,应答码供机器使用,
而文本用于人类用户使用

邮件内容
一系列的字符串,它们符合ARPA Internet文本信息格式标准的标准字符集

邮件内容结束标记
标明邮件内容结束的特定字符

邮箱
指定应该向何处发向用户的信件的地址(字符串)。它通常由用户名和主机名表示

命令
由发送SMTP发送到接收SMTP的要求一个邮件服务操作的请求


邮件系统中主机地址字符串的层次式表示

接收SMTP进程
与发送SMTP进程一起工作的进程。它等待通过传输服务建立的连接。它接收发送
SMTP发出的命令,给出应答并执行相应的操作

操作
一个信息由一个接收者发送到另一个或多个接收者的一系列操作  

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Outlook emails lost from control panel in Windows 11 Outlook emails lost from control panel in Windows 11 Feb 29, 2024 pm 03:16 PM

Is the Outlook mail icon missing from Windows 11's Control Panel? This unexpected situation has caused confusion and concern among some individuals who rely on OutlookMail for their communication needs. Why don't my Outlook emails show up in Control Panel? There may be several possible reasons why there are no Outlook mail icons in Control Panel: Outlook is not installed correctly. Installing Office applications from the Microsoft Store does not add the Mail applet to Control Panel. The location of the mlcfg32.cpl file in Control Panel is missing. The path to the mlcfg32.cpl file in the registry is incorrect. The operating system is not currently configured to run this application

The easiest way to query the hard drive serial number The easiest way to query the hard drive serial number Feb 26, 2024 pm 02:24 PM

The hard disk serial number is an important identifier of the hard disk and is usually used to uniquely identify the hard disk and identify the hardware. In some cases, we may need to query the hard drive serial number, such as when installing an operating system, finding the correct device driver, or performing hard drive repairs. This article will introduce some simple methods to help you check the hard drive serial number. Method 1: Use Windows Command Prompt to open the command prompt. In Windows system, press Win+R keys, enter "cmd" and press Enter key to open the command

Word mail merge prints blank page Word mail merge prints blank page Feb 19, 2024 pm 04:51 PM

If you find that blank pages appear when printing a mail merge document using Word, this article will help you. Mail merge is a convenient feature that allows you to easily create personalized documents and send them to multiple recipients. In Microsoft Word, the mail merge feature is highly regarded because it helps users save time manually copying the same content for each recipient. In order to print the mail merge document, you can go to the Mailings tab. But some Word users have reported that when trying to print a mail merge document, the printer prints a blank page or doesn't print at all. This may be due to incorrect formatting or printer settings. Try checking the document and printer settings and make sure to preview the document before printing to ensure the content is correct. if

The difference between win10 English version and Chinese version The difference between win10 English version and Chinese version Jan 04, 2024 pm 12:49 PM

The main difference between the English version and the Chinese version of Win10 lies in the language interface and pre-installed applications. The interface of the English version is in English, and all pre-installed applications are in English; the interface of the Chinese version is in Chinese, and the pre-installed applications are also operated in Chinese. Other than these, the functions and operations of the two versions are actually exactly the same. The differences between the English version and the Chinese version of win10: 1. Language: In the English version of Windows 10, English will appear as the default language, while in the Chinese version of Windows 10, Chinese is set as the default language. This means that after we complete the installation, users will see that the system interface, menus, dialog boxes, error prompts, etc. are all presented in different languages. 2. Pre-installed applications:

Win10 Mail cannot access this account solution Win10 Mail cannot access this account solution Jan 07, 2024 pm 03:02 PM

Win10 mailbox exists in the system that comes with Win10. Many times the default settings will cause a lot of trouble to users. For example, when using it, you find that you cannot access this account. So how to solve this problem? Let’s take a look below. What to do if Win10 Mail cannot access this account: 1. Press "Win+I" to open "Windows Settings" 2. Click "Privacy" 3. Find "E-mail" on the left taskbar 4. Turn on the option in the picture

How to transfer screen recording files to a mobile phone losslessly_Tutorial on transferring screen recording videos from a computer to a mobile phone without compression How to transfer screen recording files to a mobile phone losslessly_Tutorial on transferring screen recording videos from a computer to a mobile phone without compression Mar 01, 2024 pm 09:53 PM

In our daily life and work, we often need to use computer devices and mobile devices to transfer video files to each other. However, the video files at the receiving end are prone to blurring. This is caused by the compression of the transmission software during the transmission process. How to avoid this situation and how to transfer files to another device losslessly? You can use the EV screen recording software to transfer the video files recorded on the mobile phone to the computer in a lossless and uncompressed form for playback. Original video, below will bring you relevant tutorials, I hope it can help you. The first step on how to losslessly transfer screen recording files to your mobile phone is to download the EV screen recording software on your mobile phone, then click "Toolkit" on the homepage and find the "WiFi Transfer" function. The second step is to give up

What are the similarities and differences between Windows 10 Home Edition and Home Chinese Edition? What are the similarities and differences between Windows 10 Home Edition and Home Chinese Edition? Dec 27, 2023 pm 03:29 PM

We know that there are many different versions of the win10 system. Because they target different users, the main functions of the different versions are also different. In addition to the well-known home version, flagship version, professional version, etc., there are also many versions that we are not familiar with. Today, the editor will talk to you about the differences between Windows 10 Home Edition and Home Chinese Edition. Let’s learn more about the details~ I hope it can help you. What is the difference between Windows 10 Home Edition and Home Chinese Edition? The default system language is different 1. Windows 10 Home Edition: The default system language of Windows 10 Home Edition is English. 2. Windows 10 Home Chinese Edition: The default system language of Windows 10 Home Chinese Edition is Simplified Chinese.

Apple's iOS 18 mail app gets AI wings: enhanced search, smart writing/reply, classification and summarization, etc. Apple's iOS 18 mail app gets AI wings: enhanced search, smart writing/reply, classification and summarization, etc. Jun 11, 2024 pm 09:34 PM

According to news on June 7, technology media AppleInsider published a blog post yesterday, revealing that Apple is developing Project BlackPearl internally, which mainly enhances the email application in iOS18 and macOS15 systems, allowing AI to help users compose and reply to emails. The relevant content is summarized as follows: Enhanced Search Project BlackPearl first enhances email search results, which will display more information from address books, locations and locally stored documents. Smart Replies In addition, the new "Smart Replies" function in the email application will provide appropriate reply content based on the locally running large language model (LLM) Ajax and combined with the context of the email. compose mail

See all articles