2010. 3. 11. 18:19

Telnet을 이용해서 SMTP서버를 통해 메일 보내기

Telnet을 이용 시험삼아서 SMTP서버를 이용해서 메일을 보내는 방법

telnet mail.domain.ext 25
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?

HELO local.domain.name
250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you

MAIL FROM: mail@domain.ext
250 2.1.0 mail@domain.ext... Sender ok

RCPT TO: mail@otherdomain.ext
250 2.1.0 mail@otherdomain.ext... Recipient ok

DATA
Subject: xxxxx

This is Test mail


.
250 2.0.0 ???????? Message accepted for delivery
QUIT