Android-Login-And-Registration
Android-Login-And-Registration copied to clipboard
Verification.php error
Hello, when registering a user, a code should be sent from Email, but nothing is sent or received from me, what can be?
What the code looks like:
$ response ["error"] = false; $ response ["message"] = "New otp has been sent to your e-mail address."; $ response ["mail"] = $ message; $ from = "[email protected]"; $ email = "[email protected]"; $ subject = "Android Learning Email Verification"; $ message = "Hello $ name, \ n \ nVerify that you own $ email. \ n \ nYou may be asked to enter this confirmation code: \ n \ n $ otp \ n \ nRegards, \ nAndroid Learning."; $ headers = "[email protected]". $ from;
For mail verification you need real server. Mail function is not work in localhost
I have a real postal address, and this code is written after the comment that these lines are for online mail