>Question: How do I create a message, or send commands that will 
>send to multiple recipients using CC and BCC headers?  Is this done 
>by the mail agent when communicating with the SMTP server, or is 
>this done on the server end while parsing headers in the DATA 
>stream?  In the example above, for instance, the CC: header is 
>ignored and only the recipient in the RCPT TO: field is sent the 
>message.  It makes sense that an SMTP server should not parse mail 
>headers in the DATA, but it does seem to add a Date: header, which 
>leads me to believe that there is some degree of parsing of the 
>DATA going on.

All of what you are asking about is handled on the client end of things, 
and not on the server.

The Server only looks for a "MAIL FROM", "RCPT TO", and "DATA" commands.

Once you enter the DATA block, everything after that command and before 
the "CRLF . CRLF" is part of the email, and isn't looked at by the mail 
server (exceptions for servers specifically set up to examine email 
contents, such as for viri scanning).

TO, CC, and BCC are all the same thing as far as the SMTP server is 
concerned, they all get issued as a RCPT TO command. The Email client is 
responsible for NOT including the BCC addys into the DATA stream for the 
email body.

The Email client on the receiving end is what takes the stream from the 
DATA event, and parses everything before the first CRLFCRLF (blank line) 
and assumes it to be "header" data. There are some standard conventions 
of what should be included, and in what format, so that a client can 
parse things like the TO, CC, Date, Subject, etc properly.


You may have an easier time checking the RFCs on it, there are some 
pretty simply guidlines outlined in them. IIRC RFC 822 is a good starting 
point (I might be off on the number, so just search for SMTP... I know 
the first one is in the 800s)

-chris

<http://www.mythtech.net>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>

Reply via email to