For some reason, getting what seems like an infinite loop on the PHPMailer index