Malaysian PM Mahathir sends resignation letter to king