Code Comments
Programming Forum and web based access to our favorite programming groups.How do I send blind carbon copies with mail() ? ------------------------------------------------------------ This post did not necessarily reflect my opinions. So there. Sent from within Forte's Agent. Pull the pins out to reply direct.
Post Follow-up to this message*** Fat Bloke wrote/escribió (Thu, 25 Mar 2004 12:32:39 +0000): > How do I send blind carbon copies with mail() ? Simply add a custom header: bool mail ( string to, string subject, string message [, string addition al_headers [, string additional_parameters]] ) mail($to, $subject, $message, "BCC: my@hidden.recipient"); mail($to, $subject, $message, "BCC: my@hidden.recipient\nX-Another-Header: F oo"); -- -- -- Álvaro G. Vicario - Burgos, Spain --
Post Follow-up to this messageOn Thu, 25 Mar 2004 13:54:16 +0100, Alvaro G Vicario
<alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote:
>*** Fat Bloke wrote/escribió (Thu, 25 Mar 2004 12:32:39 +0000):
>
>Simply add a custom header:
>
>bool mail ( string to, string subject, string message [, string additio
nal_headers [, string additional_parameters]] )
>
>mail($to, $subject, $message, "BCC: my@hidden.recipient");
>mail($to, $subject, $message, "BCC: my@hidden.recipient\nX-Another-Header:
Foo");
>
>--
>--
>-- Álvaro G. Vicario - Burgos, Spain
Thanx for your reply. Unfortunately it doesn't seem to want to work (if I
have the text right, that is).
I used this -
mail("me@mydomain.com", "test", "test of Bcc message", "BCC:
someone_else@mydomain.com");
and got the original message, but not the Bcc:
Have I got it wrong somewhere?
Iain.
------------------------------------------------------------
This post did not necessarily reflect my opinions. So there.
Sent from within Forte's Agent.
Pull the pins out to reply direct.
Post Follow-up to this message*** Fat Bloke wrote/escribió (Thu, 25 Mar 2004 16:32:49 +0000):
> mail("me@mydomain.com", "test", "test of Bcc message", "BCC:
> someone_else@mydomain.com");
Apart from writing Bcc rather than BCC (that's the usual way, not the one I
wrote) I can't see anything different from what I do. However, I'm using a
Linux server. That the following apply to you?:
"The Windows implementation of mail() differs in many ways from the Unix
implementation. First, it doesn't use a local binary for composing messages
but only operates on direct sockets which means a MTA is needed listening
on a network socket (which can either on the localhost or a remote
machine). Second, the custom headers like From:, Cc:, Bcc: and Date: are
not interpreted by the MTA in the first place, but are parsed by PHP. PHP <
4.3 only supported the Cc: header element (and was case-sensitive). PHP >=
4.3 supports all the mentioned header elements and is no longer
case-sensitive."
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Post Follow-up to this messageOn Fri, 26 Mar 2004 09:45:20 +0100, Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote: >*** Fat Bloke wrote/escribió (Thu, 25 Mar 2004 16:32:49 +0000): > >Apart from writing Bcc rather than BCC (that's the usual way, not the one I >wrote) I can't see anything different from what I do. However, I'm using a >Linux server. That the following apply to you?: [snip] Aaahhh! Idiot-Features here was getting his forwarding routines all mixed-up on the server. It's woiking poifectly! Thank you! ------------------------------------------------------------ This post did not necessarily reflect my opinions. So there. Sent from within Forte's Agent. Pull the pins out to reply direct.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.