Multiple recipients all go into the address field, with commas separating them : mail function « Email « PHP






Multiple recipients all go into the address field, with commas separating them

<?php
$mailsend = mail("receiver@receipthost, a@hotmail.com, a@aol.com", "A Sample Subject Line", "Body of e-mail.");
print("$mailsend");
?>
           
       








Related examples in the same category

1.Mail cc and bcc
2.Mail to multiple recipients
3.Use variables in mail function
4.Use the mail function