RE: two small issues with php mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux