Welcome Guest, Not a member yet? Register   Sign In
Email sending takes 36 seconds!
#1

[eluser]dobbler[/eluser]
Hi,

I'm writing a password reset function where the new password gets sent via email. Here is the code:

Code:
$this->load->library('email');                        
                        
$this->email->from('[email protected]', 'Website Administration');
$this->email->to($email);

$this->email->bcc('[email protected]');
$this->email->subject('Password Reset');
$msg = "Dear " . $check_user['FirstName'] . ",\n\n";
$msg .= "Your password has been reset to: " . $new_pass . "\n\n";
$msg .= "Please login using this new password at: http://www.website.com where you will be asked to change this temporary password to something more personal.\n\nThank you,\n\nWebsite.com\n";

$this->email->message($msg);

$this->email->send();

I've tried no config, which I presume defaults to the mail protocol and config with sendmail but both are really really slow 28 seconds & 36 seconds respectively. I'm currently testing on a temporary server so I don't have access to smtp properly yet.

Is there something I'm missing?

Thanks.


Messages In This Thread
Email sending takes 36 seconds! - by El Forum - 09-09-2008, 07:55 PM
Email sending takes 36 seconds! - by El Forum - 09-10-2008, 12:23 AM
Email sending takes 36 seconds! - by El Forum - 09-10-2008, 03:41 AM
Email sending takes 36 seconds! - by El Forum - 09-10-2008, 04:00 AM
Email sending takes 36 seconds! - by El Forum - 09-10-2008, 05:39 PM
Email sending takes 36 seconds! - by El Forum - 09-11-2008, 12:08 AM
Email sending takes 36 seconds! - by El Forum - 09-11-2008, 02:28 AM
Email sending takes 36 seconds! - by El Forum - 09-11-2008, 02:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB