Untitled

mail@pastecode.io avatar
unknown
php
a year ago
409 B
3
Indexable
Never
<?php

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

$mailheader[] = 'Content-Type: text/plain;charset=utf-8';
$mailheader[] = 'MIME-Version: 1.0';
$mailheader[] = "From: " . $name . "<" . $email  . ">\r\n";
$recipient = "no-reply@atom-cnc.com";

mail($recipient, $subject, $message, implode("\r\n", $mailheader))
or die("Error!");