Hello I tried sending a mail using the php mail function but the mail is not sending.
<?php
$to = $_REQUEST['to'];
$subject = $_REQUEST['subject'];
$body = $_REQUEST['body'];
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $body, $headers);
?>
<script type="text/javascript">
alert('Mail Sent!');
window.location.href='dashboard.php';
</script>
<?php
?>
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.