There is PHP, which sends data to E-mail info@gmail.com. How to make the data sent besides this E-mail'a also on the second?

<?php error_reporting(0); DEFINE('EMAIL_TO', 'info@gmail.com'); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $headers .= 'From: noreply@'.$_SERVER['SERVER_NAME'].'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $message = "Имя: ".$_POST['name']."<br />"; if (!empty($_POST['email'])) $message .= "Email: ".$_POST['email']."<br />"; if (!empty($_POST['phone'])) $message .= "Π’Π΅Π»Π΅Ρ„ΠΎΠ½: ".$_POST['phone']."<br />"; if (!empty($_POST['info'])) $message .= "Π”ΠΎΠΏ. информация: ".$_POST['info']."<br />"; switch ($_POST['form']) { case 'tyres': mail(EMAIL_TO, 'Заявка Π½Π° ΠΏΠΎΠ΄Π±ΠΎΡ€ шин/дисков', $message, $headers); break; case 'callback': mail(EMAIL_TO, 'Π—Π°ΠΊΠ°Π· Π·Π²ΠΎΠ½ΠΊΠ°', $message, $headers); break; } ?> 

    1 answer 1

    Simply list all the recipients in the string that is the first argument to mail. The destination format must be RFC 2822 compliant: for example, User <user@example.com>, Another User <anotheruser@example.com> or user@example.com, anotheruser@example.com