CodeIgniter Forums
Email sent and received but webpage still in "wait for response .." for 1 minute - 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: Email sent and received but webpage still in "wait for response .." for 1 minute (/showthread.php?tid=46409)



Email sent and received but webpage still in "wait for response .." for 1 minute - El Forum - 10-31-2011

[eluser]Unknown[/eluser]
Hello,

I correctly managed sending emails with CI, but there's a little issue that bother me: I send and receive the emails in about 5 seconds, but the html page stays in "waiting for response .." for 1 minute. After $this->email->send(); I do a redirect. So after 1 minute the page redirects to the new page.

I use the following private smtp server configuration:

$email_config['protocol'] = 'smtp';
$email_config['smtp_host'] = 'mail.xxxxxxxx.it';
$email_config['smtp_user'] = '[email protected]';
$email_config['smtp_pass'] = 'xxxxxxxx';
$email_config['smtp_port'] = 25;
//$email_config['smtp_timeout']= 0;
$email_config['wordwrap'] = TRUE;
$this->email->initialize($email_config);

I tried change smtp_timeout setting but it doesn't do anything. So my question is: is it an issue of my smtp server or of the script ?

Can I do something ?

Thank you. Bye

Matteo