Reheating temperature and the right-handed neutrino mass