Mail cc and bcc : mail function « Email « PHP






Mail cc and bcc

<?php
   $headers = "From:sender@java2s.com\r\n";
   $recipients = "b@java.com,a@java.com";
   mail($recipients, "This is the subject","This is the mail body", $headers);
?>


           
       








Related examples in the same category

1.Mail to multiple recipients
2.Multiple recipients all go into the address field, with commas separating them
3.Use variables in mail function
4.Use the mail function