[smtp]reply to, cc and bcc
Connect to a mailserver using telnet on port 25. One can specify recepient with rcpt to.
Subject can be specified with subject: in the datapart of the message. How does one specify 'reply to', 'cc' and 'bcc'? Tried to find it in rfc2821, but don't seem to be able to find it. |
reply-to, cc, bcc, and subject are header fields (as opposed to envelope) and are therefore listed after the DATA command. See rfc 822.
|
Thanks for the link. I was trying to get 'reply-to' working
Problem seems to have been in the sequence of the fields. And also that a 'from' is required if one uses reply-to. |
Quote:
|
I've tried it again with different sequences of 'subject' and 'reply-to' and now it works every time. I guess I made some mistakes in my php-code that caused funny behaviour (reply-to in message instead of in field).
If I do not include the 'from', I do not see a 'from' in the received email. It might be that this is caused by the server; I'm connecting directly to an exchange server (not using sendmail) and cannot change its behavior. I can live with this. Thanks again. |
specify 'cc' and 'bcc'??
How and where did u specify the 'cc' and 'bcc'?
Also have u tried multiple recipients? |
I haven't; it was basically a more generic question.
It's long ago that I ran into a (this) problem, so I don't know the exact story anymore. I was (I am) using telnet to communicate with an exchange server. |
Thanks very much for the kind reply.
I am also using telnet to communicate to the server. There I tried using cc: and bcc: inside the data area but its not working. Anyway thanks for the reply. |
All times are GMT -5. The time now is 08:40 PM. |