09-09-2008, 07:55 PM
[eluser]dobbler[/eluser]
Hi,
I'm writing a password reset function where the new password gets sent via email. Here is the code:
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.
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('no-reply@website.com', 'Website Administration');
$this->email->to($email);
$this->email->bcc('mail@address.com');
$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.