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
2

how to send email with PHP on repl?

ChezCoder
ChezCoder

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!') window.open('/home.php','_self') } else { alert('Please try again.') } </script> ";
3 years ago
You are viewing a single comment. View All
2
1

Surprisingly simple

@SixBeeps

3 years ago
1
SixBeeps
SixBeeps

@ChezCoder
Did you ad a From header in your php.ini file?

3 years ago