Re: mail() Bcc:

From: Date: Mon, 24 Mar 2003 23:58:22 +0000
Subject: Re: mail() Bcc:
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-140906@lists.php.net to get a copy of this message
At 23:51 24.03.2003, CPT John W. Holmes said: --------------------[snip]-------------------- >If I'm wrong, someone please let me know, but some servers may only accept >Bcc: instead of bcc: or BCC:, etc... ?? Does anyone know if that matters? If >it does, is it only dependant upon the sending SMTP server and not any >servers the message is sent through or the receiving server? --------------------[snip]-------------------- AFAIK the Bcc: address list is never found in the MIME headers at it is a list of _blind_ addresses - i.e. addresses that do _not_ show up in the messages, but whom the mail is delvered to as well. They do show up in the SMTP envelope, as RCPT TO: addresses during SMTP conversation. This is an example of how such a conversation could look like: S: 220 mail.mydomain.com; ESMTP Tue, Mar 25 2003, 00:49:12 C: HELO bluebear.mydomain.com S: 250 mail.mydomain.com Hello bluebear.mydomain.com Pleased to meet you C: MAIL FROM: office@mydomain.com S: 250 2.1.0 office@mydomain.com... Sender ok C: RCPT TO: saundra@nowhere.net S: 250 2.1.5 saundra@nowhere.net... Recipient ok C: RCPT TO: lurker@nowhere.net S: 250 2.1.5 lurker@nowhere.net... Recipient ok C: DATA S: 354 Enter mail, end with "." on a line by itself C: From: office@mydomain.com C: To: saundra@nowhere.net C: Subject: Test message C: C: Dear Saundra, this is only a test, please disregard. C: . S: 250 2.0.0 h2ONqQm26855 Message accepted for delivery C: QUIT S: 221 2.0.0 mail.mydomain.com closing connection You see the main recipient is listed in the MIME header ("To:"), but the Bcc recipient (lurker@nowhere.net) is not; it only shows up during the SMTP conversation (the "envelope" part). AFAIK it's a feature of the mail client; be it an email program or a mailer class. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#140906) next »