At 1:34 PM -0700 5/16/07, Kevin W. Gagel sent email
regarding Re:
[SurgeMail List] telnet smtp commands:
>----- Original Message -----
>>Shouldn't there be a blank line before Subject?
>
>No, the blank line after the DATA command moves the
remaining streaming
>data into the body of the message. Streaming data prior
to a blank line is
>for use in the headers of the email.
Exactly.
>
>The helo, mail from and rcpt to commands are all issued
before the DATA
>command and the information given via those commands is
what is inserted
>into the received line (fake or otherwise), the return
address (can be
>fake) and the destination (which must exist).
>
>An attempt to issue the subject before the DATA results
in an error.
But what happens if you issue a blank line, then subject,
to, from
etc, *after* DATA?
Try this:
telnet mail.domain.com 25
HELO domain.com
MAIL FROM: me domain.com
RCPT TO: them domain.com
DATA
To: them domain.com
From: me domain.com
CC: somone else.com
Subject: Hello there
|