Moin und danke für deine Hilfe.
Problem:
Parse error: syntax error, unexpected ''; ' (T_CONSTANT_ENCAPSED_STRING) in /homepages/21/d509260249/htdocs/neu/wp-content/themes/profi/functions.php on line 518
es ist also die Zeile 518 und dort steht:
<?php
$message = ob_get_contents();
ob_end_clean();
$subject = 'Profi - Contact Form';
$headers[] = 'From: ' . $_POST["quick_email"]';
add_filter('wp_mail_content_type', 'profi_html_content_type');
function profi_html_content_type() {
return 'text/html';
}
if (wp_mail($to, $subject, $message, $headers)) {
echo '<p style="margin: 20px 0; padding: 20px 10px; background-color: #fff;">' . 'Vielen Dank für Ihr Interesse. Wir werden Sie bald kontaktieren.' . '</p>';
} else {
echo '<p style="margin: 20px 0; padding: 20px 10px; background-color: #fff;">' . 'E-Mail wurde nicht gesendet. Bitte versuchen Sie es erneut.' . '</p>';
}
remove_filter('wp_mail_content_type', 'set_html_content_type');
}
die();
}
?>
<?php