LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   [smtp]reply to, cc and bcc (https://www.linuxquestions.org/questions/linux-networking-3/%5Bsmtp%5Dreply-to-cc-and-bcc-459368/)

Wim Sturkenboom 06-29-2006 02:23 AM

[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.

Berhanie 06-29-2006 02:38 AM

reply-to, cc, bcc, and subject are header fields (as opposed to envelope) and are therefore listed after the DATA command. See rfc 822.

Wim Sturkenboom 06-29-2006 07:02 AM

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.

Berhanie 06-29-2006 10:02 AM

Quote:

And also that a 'from' is required if one uses reply-to.
I didn't find that to be the case, since a missing 'From:' line is always generated based on the 'MAIL FROM:' envelope, at least with postfix. The address following 'Reply-To:' probably does not show in your MUA as the originator of the mail, but it's still there in the headers. It's only when you try to repond to the message that the address is used.

Wim Sturkenboom 06-30-2006 12:12 AM

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.

ThePatriot 11-13-2007 05:23 AM

specify 'cc' and 'bcc'??
 
How and where did u specify the 'cc' and 'bcc'?
Also have u tried multiple recipients?

Wim Sturkenboom 11-13-2007 10:56 AM

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.

ThePatriot 11-13-2007 11:11 PM

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.