marwan29
posted this
30 March 2021
Thank you,
Actualy I don't understand where to put it.
I use "contact.php" file, and the content of this file is look like this:
<?php $field_name $field_email $field_message specify the message recipient: $mail_to ; $mail_from ; $subject .$field_name; the email content: $body_message .$field_name."\n"; $body_message . .$field_email."\n"; $body_message . .$field_message; $headers .$mail_from."\r\n"; $headers . .$field_email."\r\n"; $mail_status $subject, $body_message, $headers); show a json message about the successful or unsuccessful sending a message if ($mail_status) { $resarray?> true);
header('Content-Type: application/json');
echo json_encode($resArray);
} else {
$resArray= array('success' => false);
header('Content-Type: application/json');
echo json_encode($resArray);
}
?>
So where to put "Content-Type:text/html;charset=utf-8" ?
Thanks
Thank you,
Actualy I don't understand where to put it.
I use "contact.php" file, and the content of this file is look like this:
<?php $field_name $field_email $field_message specify the message recipient: $mail_to ; $mail_from ; $subject .$field_name; the email content: $body_message .$field_name."\n"; $body_message . .$field_email."\n"; $body_message . .$field_message; $headers .$mail_from."\r\n"; $headers . .$field_email."\r\n"; $mail_status $subject, $body_message, $headers); show a json message about the successful or unsuccessful sending a message if ($mail_status) { $resarray?> true);
header('Content-Type: application/json');
echo json_encode($resArray);
} else {
$resArray= array('success' => false);
header('Content-Type: application/json');
echo json_encode($resArray);
}
?>
So where to put "Content-Type:text/html;charset=utf-8" ?
Thanks
Last edited 30 March 2021 by marwan29