select s.name,c.text,*
from sysobjects s
inner join syscomments c on c.id=s.id
where c.text like '%sp_send_dbmail%'