CodeIgniter Forums
$this->email->send() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: $this->email->send() (/showthread.php?tid=21553)



$this->email->send() - El Forum - 08-13-2009

[eluser]The Mask[/eluser]
Hi,

Is it possible to configure this to run asynchronously?

It seems to take a couple of seconds to run and I'd prefer there to be no delay in sending a response back to the browser.

Any help appreciated.


$this->email->send() - El Forum - 08-13-2009

[eluser]jcavard[/eluser]
[quote author="The Mask" date="1250185491"]Hi,

Is it possible to configure this to run asynchronously?

It seems to take a couple of seconds to run and I'd prefer there to be no delay in sending a response back to the browser.

Any help appreciated.
[/quote]
I'm sorry, what!? Why wouldn't it work? What is you question exactly?


$this->email->send() - El Forum - 08-13-2009

[eluser]The Mask[/eluser]
It does work but it takes a couple of seconds for it to respond. Is it possible for it to run in the background so that I can send a response (load a view) back to the browser immediately.


$this->email->send() - El Forum - 08-13-2009

[eluser]jcavard[/eluser]
of course, it's just like every other code. call a script that executes $this->mail->send(); asynchronously.