Untitled
Anonymous
php
10/13/2023 1:15 PM
548 B
19
Indexable
<?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 = "[email protected]"; mail($recipient, $subject, $message, implode("\r\n", $mailheader)) or die("Error!");
Editor is loading...