Re: two small issues with php mail

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

 



Andrés Robinet wrote:
Brad,

This comment is extracted directly from PHPMailer source (before the
implementation for the function AddBCC)

  /**
   * Adds a "Bcc" address. Note: this function works
   * with the SMTP mailer on win32, not with the "mail"
   * mailer.
   * @param string $address
   * @param string $name
   * @return void
   */

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.

And they were right, all the way up until PHP 4.3.0. From the mail manual page...

4.3.0 (Windows only) All custom headers (like From, Cc, Bcc and Date) are supported, and are not case-sensitive. (As custom headers 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).

So if you're using >= 4.3.0 on Windows the Bcc header will be parsed.

For unix-based servers where mail uses sendmail the Bcc header is supported by that and therefore does not need to be supported by PHP.

-Stut

--
http://stut.net/

--
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