Home >php教程 >php手册 >用Socket发送电子邮件三

用Socket发送电子邮件三

WBOY
WBOYOriginal
2016-06-13 10:28:121153browse

下面给出一个简单的命令头(这是在打开socket之后做的),是我向stmp.263.net发邮件的测试结果:
HELO limodou
250 smtp.263.net
MAIL FROM: chatme@263.net
250 Ok
RCPT TO: chatme@263.net
250 Ok
DATA
354 End data with .
To: chatme@263.net
From: chatme@263.net
Subject: test
From: chatme@263.net
test
.
QUIT
250 Ok: queued as C46411C5097E0
  这就是一些SMTP的简单知识。相关内容可以查阅RFC。
RFC 821定义了收/发电子邮件的相关指令。
RFC 822则制定了邮件?容的格式。
RFC 2045-2048制定了多媒体邮件?容的格式,
RFC 1113, 1422-1424则是讨论如何增进电子邮件的保密性。

Statement:
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