å°ã£ãæ SMTPã§æ·»ä»ãã¡ã¤ã«ãéä¿¡ãã
ãªããç¥ãããã©ããããªãã¨ããå¿
è¦ãåºã¦ãã¦ãã¾ã£ããã
太åã¯èªåã§å
¥åããã¨ããã§ãããç·ã¯ã³ã¡ã³ãã ã
ã¾ããããªãã¨ãã人ã¯ä»ã«èª°ãããªãã ãããã©ãèªåã®åå¿é²ã¨ãã¦æ®ãã¦ããã
# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.co.jp ESMTP unknown: Wed, 19 Oct 2005 22:30:28 +0900
helo host.co.jp
250 host.co.jp Hello host.co.jp [127.0.0.1], pleased to meet you
MAIL FROM: [email protected]
250 2.1.0 [email protected]... Sender ok
RCPT TO: hoge@hoge.co.jp
250 2.1.5 hoge@hoge.co.jp... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
MIME-Version: 1.0
From: [email protected]
To: hoge@hoge.co.jp
Subject: hogehoge
Content-Type: multipart/mixed; boundary="*1234"ï¼"*1234"ã¯çµ¶å¯¾æç« ä¸ã«åºã¦ããªãæååãæå®ãã
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
ï¼æ¹è¡ã®ã¿
--*1234
Content-Type: text/plain; charset=ISO-2022-JP
ï¼æ¹è¡ã®ã¿
testï¼æ¬æ
ï¼æ¹è¡ã®ã¿
--*1234
Content-Type: text/plain; name=file_name.txtï¼æ·»ä»ãã¡ã¤ã«å
ï¼æ¹è¡ã®ã¿
aaaaaaaaaaaaaaaaaaaaaaaaaï¼ãããéãããå 容
ï¼æ¹è¡ã®ã¿
--*1234--
.
250 2.0.0 j9JDUS04017565 Message accepted for delivery
quit
221 2.0.0 host.co.jp closing connection
Connection closed by foreign host.