What code I should do change in this PHP script to send one email to more than 20 email addresses?
It is very bad practice to send all email addresses to all recipients; you should use Bcc (blind carbon copies).
$from = "myname@mymail.com";
$recipList = "mailaddress1,mailaddress2,etc";
$headers = "MIME-Version: 1.0\nContent-type: text/html; charset=utf-8\nFrom: {$from}\nBcc: {$recipList}\nDate: ".date(DATE_RFC2822);
mail(null,$subject,$message,$headers); //send the eail