Welcome Guest, Not a member yet? Register   Sign In
return redirect()->back();
#9

(This post was last modified: 05-15-2021, 05:00 PM by swsupport.)

Adding exit; didn't make any difference.
In reading some more - is it possible that PHP is waiting for a return from the PHP mail function?
Maybe I need to find a way to send the email asynchronously?
I found this code to do that in another search - exec("php mailuser.php > /dev/null 2>&1 &"); - but I am hesitant to use it after reading comments about its security and other issues regarding long-running threads...

I tried doing this instead of the return:

$this->index();

That did work to display the shopping cart - and did send the email, so I'll just use this and quit trying to figure out why the return from a function didn't work.
Reply


Messages In This Thread
return redirect()->back(); - by swsupport - 05-15-2021, 08:24 AM
RE: return redirect()->back(); - by includebeer - 05-15-2021, 08:38 AM
RE: return redirect()->back(); - by swsupport - 05-15-2021, 09:01 AM
RE: return redirect()->back(); - by swsupport - 05-15-2021, 09:50 AM
RE: return redirect()->back(); - by swsupport - 05-15-2021, 10:20 AM
RE: return redirect()->back(); - by InsiteFX - 05-15-2021, 11:40 AM
RE: return redirect()->back(); - by swsupport - 05-15-2021, 11:41 AM
RE: return redirect()->back(); - by wdeda - 05-15-2021, 03:10 PM
RE: return redirect()->back(); - by swsupport - 05-15-2021, 04:47 PM
RE: return redirect()->back(); - by demyr - 05-15-2021, 10:54 PM
RE: return redirect()->back(); - by MGatner - 05-22-2021, 05:19 AM
RE: return redirect()->back(); - by John_Betong - 05-22-2021, 04:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB