PHP: Envoyer un email

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

PHP: Envoyer un email à plusieurs personnes

<?php
   $headers = "From:sender@mesexemples.com ";
   $recipients = "test@java.com,a@mesexemples.com";
   mail($recipients, "This is the subject","This is the mail body", $headers);
?>