+ 1
I have a problem with my phpmailer
Hi guys.... I started working on a project... A registration and login system with email verification in php... So my problem is; the system is registering and logging in users, but while registering a user, the user gets the verification link in his/her mail address, when they click on the link it takes them to an error page (404), but then it still updates the database at the process... That is when it takes them to the error page, it still updates the db and verify the user.. But when the user now click on the link again it now takes them to the original page i directed it to go... Please how can i solve this problem??? Below is the phpmailer (send.php) file... https://code.sololearn.com/wV3aZ9R49Jg7/?ref=app
1 Odpowiedź
+ 1
the point is that you can not directly mail users on your local host if you want to send mail in the local host then you must some configurations in your host sittings. or if you just want your detabase not to be updated when facing the not found exception then put an if statement for the mail in case of failure.