TELNETでメール送受信 †
TELNETでメール受信 †
ユーザ名の入力 | user ユーザ名 |
パスワードの入力 | pass パスワード |
受信メールの件数表示 | stat |
受信メール一覧の表示 | list |
メール内容の表示 | retr メール番号 |
メールの削除 | dele メール番号 |
例)
telnet
set codeset JIS Kanji ... ※1
open pop.hogehohe.com 110
user xxxxxxxx
pass xxxxxxxx
stat
list
retr 1
※1 WindowsのTELNETはデフォルトの文字コードがShift JISなので
日本語のメールが文字化けしてしまう為、明示的に文字コードを指定する。
Telnetでメール送信 †
telnet smtp.hogehoge.com 25
helo hogehoge.com
mail from: test@hogehoge.com
rcpt to: test@hogehoge.com
data
subject: TestMail
from: test@hogehoge.com
to: test@hogehoge.com
TEST MAIL!
.