我有一些PHP代码,我用来将表单发送到特定的电子邮件地址.但是,我想在PHP发送它时在PHP中包含更多的电子邮件地址.我怎样才能做到这一点?
<?php
if(isset($_POST['email'])) {
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "email@email.com";
$email_subject = "MVP Nomination";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
// validation expected data exists
if(!isset($_POST['username']) ||
!isset($_POST['body'])||
!isset($_POST['email'])) {
died('We are …Run Code Online (Sandbox Code Playgroud)