I have a PHP code to capture variables off of my html form and send me an email.
For some reason this isn’t working.
<?php
$nome = $_POST["nome"];
$subject = "My subject";
$email = $_POST["email"];
$headers = "From:" . $email;
$mensagem = $_POST["mensagem"];
mail('myemail@mydomain.com', $subject, $message, $headers);
?>
It sends an email, but it doesn’t carry any of the variables.IE: it shows an empty FROM)
re-write this part of your code. you might find something