Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

mail() and Bcc:
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Fat Bloke
03-27-04 04:13 AM


Re: mail() and Bcc:
*** 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
--

Report this thread to moderator Post Follow-up to this message
Old Post
Alvaro G Vicario
03-27-04 04:13 AM


Re: mail() and Bcc:
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 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.

Report this thread to moderator Post Follow-up to this message
Old Post
Fat Bloke
03-27-04 04:13 AM


Re: mail() and Bcc:
*** 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
--

Report this thread to moderator Post Follow-up to this message
Old Post
Alvaro G Vicario
03-27-04 04:13 AM


Re: mail() and Bcc:
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Fat Bloke
03-27-04 04:13 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.