par
Agent5acad27 » 09 juil. 2016, 22:55
Puts this at the top of your page in php tags
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
Otherwise, your mistake , I think, is as follows ( The 've marked) :
<?php
if (isset($_REQUEST['email'])) {
$admin_email = "[email protected]";
$email = $_REQUEST['email'];
$subject = $_REQUEST['subject'];
mail($admin_email, "$subject", "From:" . $email);
echo "Message sent";
}
else { //Remove {
?>
Best regards,
Agent5acad27
Puts this at the top of your page in php tags [php]ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);[/php]
Otherwise, your mistake , I think, is as follows ( The 've marked) :
[php]<?php
if (isset($_REQUEST['email'])) {
$admin_email = "
[email protected]";
$email = $_REQUEST['email'];
$subject = $_REQUEST['subject'];
mail($admin_email, "$subject", "From:" . $email);
echo "Message sent";
}
else { //Remove {
?>[/php]
Best regards,
Agent5acad27