Hi In this script when users register on site they shoould receive confrimation email / code but the problem is users never receive it, I can activate it manually on mysql, there is stored activation key:
Here is script, what could be a problem?
/**
 * Sends activation email
 */
function notify_activation($user) {
  $app = \Slim\Slim::getInstance();
  
  $message = "Hello, <br>";
  
  $message .= '<br> To activate your <a href="'.app_url().'">' . get_config('appname') . '</a> account, please click the following link:<br>';
  
  $activation_link = app_url() . "/activate/" . $user->activation_token;
  
  $message .= '<a href="'.$activation_link.'">'.$activation_link.'</a>';
  $subject = get_config('appname') . " : Account Activation";
  
  mail($user->email, $subject, $message, get_notifier_headers(get_config('admin_email')));
}Here is the full code: https://dl.dropboxusercontent.com/s/rwobyfjwvwny91m/phpfile.txt.txt