I have a problem with my phpmailer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

31st Jan 2021, 12:19 AM
Okoro Ikechukwu Stephen
Okoro Ikechukwu Stephen - avatar
1 Answer
+ 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.
28th Feb 2021, 7:31 PM
N A I E B I
N A I E B I - avatar