0

I am sorry to ask suck a trivial thing, but I really do not use php, and I am trying the simplest code to work, to just send an email with no captchas or anything complicated.

<?php 
$name = $_POST['name'];
$email = $_POST['email']; 
$message = $_POST['message'];
$to = "some-email@live.com"; 
$subject = "New message";

mail($to, $subject, "From: " . $name, $message, "", "");
echo "Your message has been sent";

?>
DGAcode
  • 37
  • 9

0 Answers0