RE: [PHP] two small issues with php mail

From: Date: Tue, 20 Nov 2007 08:41:30 +0000
Subject: RE: [PHP] two small issues with php mail
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-264848@lists.php.net to get a copy of this message
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

« previous php.general (#264848) next »