[eluser]Bl4cKWid0w[/eluser]
My script is supposed to send out an email upon registration for account activation. For some reason, users that register do not receive this email. Everything else works fine, just not the email. This is my code:
Code:
$config['mailtype'] = 'html';
$this->load->library('email');
$this->email->to($user['email']);
$this->email->from("Fourth Core Dot Com");
$this->email->subject("Activate Your Account");
$this->email->message("<HTML>Hello, ".$user['displayname']."! You recently filled out a registration form at FourthCore.com. If you did not, ignore this email. To complete the registration process, you must first activate your account. You can do this by clicking on the link below.<br><br><a href='http://www.fourthcore.com/register/activate/".$user[' target='new'>http://www.fourthcore.com/register/activate/".$user['activationcode']."'<br><br>Thank you for registering,<br>The Fourth Core Team</HTML>");
$this->email->send();