Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
391 B
2
Indexable
<?php

$name = $_POST["name"];
$email = $_POST["email"];
$subject = $_POST["subject"];
$message = $_POST["message"];

$mailheader = 'Content-type: text/html; charset=iso-8859-1';
$mailheader = 'MIME-Version: 1.0';
$mailheader = "From: " . $name . "<" . $email  . ">\r\n";
$recipient = "no-reply@atom-cnc.com";

mail($recipient, $subject, $message, $mailheader)
or die("Error!");