Electronic mail
User Agent(mail reader)
mail servers
SMTP

transport layer에서 TCP를 사용하여 신뢰성을 보장한다.
Port Number 25를 사용한다.
메시지 전달과정:
1. TCP Connection을 하여 handshaking을 한다.
2. 메시지가 전송된다.
3. closure
command/reponse interraction
commands: ASCII text(7-bit)
response: code와 phrase의 상태
persistent connections: 한 개의 TCP Connection에서 서버는 여러 개의 메시지를 보낼 수 있다.
HTTP vs SMTP
HTTP
1. pull(서버에서 리소스를 pull한다.)
2. 각 obecte들은 response message에 담겨 전송된다.
SMTP
1. push(서버에게 메일을 push한다.)
2. 한개의 응답 메시지는 한개의 Object를 가진다.
SMTP Mail message format
RFC 822: text message format의 표준

header lines: to, from, subject
Body: the message(ASCII)
Mail access protocols

[참고] Computer Networking A Top-Down Approach EIGHTH EDITION/Kurose.Ross/Pearson