Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

how to send email with PHP on repl?


I want to create an email verification system:

$email = $_POST["email"]; $vcode = $_POST["code"]; # lets pretend send was the email function send($email,"Verify your email!","[email protected]",$vcode); echo " <input id='vemail'> <button id='verify'>Verify!</button> <script> document.getElementById('verify').click() = function(){ if (document.getElementById('vemail') == $vcode){ alert('Successful!')'/home.php','_self') } else { alert('Please try again.') } </script> ";
3 years ago
You are viewing a single comment. View All