File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/APPS/CMNS/sendMail.php
Back
<?php $data = $_POST['img']; $msg = $_POST['msg']; $to = $_POST['to']; /*list($type, $data) = explode(';', $data); list(, $data) = explode(',', $data); */ $data = base64_decode($data); $num = rand(1,100000); file_put_contents($num.'.png', $data); $url = 'https://cipherteam.in/APPS/CMNS/'.$num.'.png'; // echo '<img src="image.png" />'; // /* //$to = 'pratiksachaniya999@gmail.com'; $subject = 'Alert !! Alert !! Alert !!'; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; $message = '<h3>'.$msg.'</h3></br>Image taken:</br> <img src="'.$url.'" />'; mail($to, $subject, $message, $headers); echo "Sent"; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings