Rankings fixes, added PHPMailer