Home > Archive > PHP Language > March 2004 > mail() and Bcc:
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Fat Bloke 2004-03-26, 11:13 pm |
| 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.
| |
| Alvaro G Vicario 2004-03-26, 11:13 pm |
| *** 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 additional_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
--
| |
| Fat Bloke 2004-03-26, 11:13 pm |
| On 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 additional_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.
| |
| Alvaro G Vicario 2004-03-26, 11:13 pm |
| *** 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
--
| |
| Fat Bloke 2004-03-26, 11:13 pm |
| On 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.
|
|
|
|
|