public function sendActivationCode($email, $id, $username) {
$settings = new settings();
$from = $settings->loadSetting('from_email');
$headers = array();
if ($from) {
$headers['From'] = $from;
}
$gameName = $settings->loadSetting("game_name");
$activationCode = $this->activationCode($id, $username);
$subject = $gameName . " - Registration";
$body = "$username your activation code for $gameName is $activationCode, after you have logged in please enter this when prompted.";
mail($email, $subject, $body, $headers);
}
This is the same... maybe i have problem with my hosting system?