|
telnet [mail server ip/name] 25 HELO site.company.com MAIL FROM:<username@krytosvirus.com> RCPT TO:<customer@company.com> DATA Subject:Type your subject here Now press the Enter key twice. You will not see a response to this command. The two enter commands are to conform to RFC 822. Type you message here
should see a response like this – 250 OK You can now close the connection. Type in the following command – QUIT
telnet [mail server ip/name] 110 user [username] pass [password] The following commands may be used as needed: stat (lists number of messages and total size of all messages) Sample response: +OK 3 345910 list (this will list all of the messages showing their size) Sample response: retr [message number] (outputs content of message to the screen) Example: RETR 2 top [message number] [number of lines] (this will display the message header and as many lines after that as you enter in] Example: TOP 1 5 would list the headers and first 5 lines. dele [message number] (marks message for deletion) Example: DELE 3 rset (unmarks all messages previously marked for deletion) quit (deletes marked messages and logs you off the server) for other commands see: ftp://ftp.isi.edu/in-notes/rfc1939.txt |