I'm trying to send a mail after a successful registration but the mailer page is not loading or either not running completely and the control goes to the next location. I don't know why this is not working.
header("Location: ../../email/registration.php?name=$student_name&email=$email");
header("Location: ../../registration_successfull.php?name=$student_name&email=$email");
I even try the exec and system but they are not working , can anyone give me any solution.
you can only do one location-header. So what you could do is redirect to the ../../email/registration.php
, send email, and then from there redirect to ../../registration_successfull.php