Hi, I am fairly new to php. any way i have added a feedback form and when ever i try to send a test feedback to my email i don't actually receive any thing.
I test this using xampp and it works fine.
i was informed it's to do with using smtp or something.
My php code is as listed. Please note email address has been removed.
<?php
$name = $_POST['name'];
$priority = $_POST['priority'];
$message = $_POST['message'];
$formcontent=" From: $name \n Priority: $priority \n Message: $message";
$recipient = "placeholder@placeholder.com";
$subject = "Feedback";
$mailheader = "From: \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo " Thank you for your feedback" . " -" . "<a href='contact.html' style='text-decoration:none;color:green;'>Return</a>";
?>
any help would be good.
thanks
I test this using xampp and it works fine.
i was informed it's to do with using smtp or something.
My php code is as listed. Please note email address has been removed.
<?php
$name = $_POST['name'];
$priority = $_POST['priority'];
$message = $_POST['message'];
$formcontent=" From: $name \n Priority: $priority \n Message: $message";
$recipient = "placeholder@placeholder.com";
$subject = "Feedback";
$mailheader = "From: \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo " Thank you for your feedback" . " -" . "<a href='contact.html' style='text-decoration:none;color:green;'>Return</a>";
?>
any help would be good.
thanks