PHP form

I have a php process form and was told it is not working because it has a syntax error in the last two lines. However I don’t know what they are? Any help would be appreciated greatly. Thank you.

mail($mailTo, $subject, $txt, $headers);
header("$Location: index.php?mailsend" );

<?php if(isset ($_POST['submit'])) { $name=$_POST['name']; $subject=$_POST['subject']; $mailFrom=$_POST['mail']; $message=$_POST['message'];} $mailTo = "cannabispaste@reefersolutions.org"; $headers= "From: ".$mailFrom; $txt="You have received an e-mail from" .$name".\n\n".$message; mail($mailTo, $subject, $txt, $headers); header("$Location: index.php?mailsend" ); } ?>

you have a typo on the $txt variable :
$txt=“You have received an e-mail from” .$name".\n\n".$message;
the dot after the $name variable isn’t at the right place
$txt = “You have received an e-mail from” . $name . “\n\n” . $message;