Mine
public text v1 · immutable<form method="post" action="contact.php">
Email: <input name="email" type="text"><br>
Message:<br>
<textarea name="message" rows="15" cols="40"></textarea><br>
<input type="submit">
</form>
<?php
$to = "slack.tech@gmail.com";
$subject = "contact";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$sent = mail($to, $subject, $message) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>