Wie i cc und bcc im folgenden Skripthinzufügen cc und bcc in php mail
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
$formcontent=" From: $name \n Phone: $phone \n Call Back: $property_id \n Priority: $priority \n Type: $type \n Message: $message , $proptitle";
$recipient = "[email protected]";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!" . " -" . "<a href='#' style='text-decoration:none;color:#ff0099;'> Return Home</a>";
?>
Hat man sich [diese Seite] (http://php.net/manual/en/function.mail.php)? Dort gibt es viele Informationen. Suche (ctrl + f) nach "cc" und du findest vielleicht etwas Nützliches. – Ivar
Sei vorsichtig mit der E-Mail der anderen Person im Feld "von", du solltest ihre E-Mail in die Antwort schreiben zu, siehe [Häufige Kontaktformular Fehler] (https://www.unlocktheinbox.com/resources/dmarccontactus/) – Henry