Andrés Robinet wrote:

> I don't really know the internals of how and why Bcc won't work with
> the mail function on windows, but if these guys who developed
> PHPMailer say so... "Holy Word", so I wouldn't expect the mail
> function on Windows to work with Bcc.
> What you can do? Well... if Bcc is a requirement and you MUST do the
> code for "Windows+PHP" you'll have to write you own code to login to a
> SMTP server or use PHPMailer... (or any other ready made solution).

No, you don't have to go such lengths.  A BCC-copy is just another email
which doesn't list the recipient in the To: header, so you just send
your email twice:

mail( to-addr, subject, message, headers);
mail( bcc-addr, subject, message, headers);


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to