Skip to content

Instantly share code, notes, and snippets.

@hamano
Created December 22, 2011 19:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hamano/1511522 to your computer and use it in GitHub Desktop.
Save hamano/1511522 to your computer and use it in GitHub Desktop.
SPモードメールプロトコル
------------------------
< サーバーのレスポンス
> クライアントのリクエスト
---
< 220 ESMTP Server Ready
> EHLO mail.spmode.ne.jp
< 250-docomo.ne.jp
< 250-AUTH PLAIN
< 250-MAIL
< 250-RCPT
< 250-DATA
< 250-QUIT
< 250-RSET
< 250-NOOP
< 250 SIZE
> AUTH PLAIN
< 334
> (BASE64エンコードされた206byteの認証情報)
< 235 Authentication successful
> MAIL FROM:<hamano.t.nonexist@docomo.ne.jp>
< 250 Requested mail action okay, completed
> RCPT TO:<rcpt@example.com>
< 250 Requested mail action okay, completed
> DATA
< 354 End data with <CR><LF>.<CR><LF>
> MIME-Version: 1.0
> To: rcpt@example.com
> Subject: from wifi
> Content-Type: text/plain; charset="shift_jis"
> Date: Fri, 23 Dec 2011 10:29:05 +0900
> Content-Transfer-Encoding: 8bit
> From: hamano.t.nonexist@docomo.ne.jp
> X-Mail-Type: deco
> Message-ID: <wrejl68otcsky6gv.1324602189084@docomo.ne.jp>
> X-DCM-ClientInfo: 2.3.4;4.0.1.C.1.9;SO-02C;8x55A-AAABQOAZM-203028B-57
> X-Mailer: DOCOMO spmode mail ver.5300
>
> hello
>
> .
< 250 Requested mail action okay, completed
> QUIT
< 221 Service closing transmission channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment