Use master..xp_sendmail instead of just xp_sendmail.