|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-01-01 21:25 UTC] irc-html@php.net
  [2002-06-18 19:10 UTC] sniper@php.net
  [2002-06-19 01:28 UTC] mfischer@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 22:00:01 2025 UTC | 
Want to send an e-mail to 2 e-mail addresses, one normal To: and other Cc:. Simple script works on linux but not on win2k: $headers = "Cc: <address1@example.com>\r\n"; $headers .= "From: \"Program Test\" <from@example.com>\r\n"; mail('<address2@example.com>', 'subject', 'message', $headers); SMTP server is qmail. Email successfully sent to To: address but Cc header in message to Cc address (Cc address never receives email, drops to 'catch-all' account) ends up to be: Delivered-To: cc: <sales@irc-html.com Note the cc: and the dropped '>'. I'm assuming this is a bug with the mail handler in PHP with win32. I've also tried the same code without surrounding the e-mail addresses with <>. Same behavior with 4.0.6 (on win32).