see details in SQL server Books online about the following stored procedure
xp_findnextmsg
xp_readmail
i)by first proc u can find the id of undread msg.
ii)then u have to pass the id to the second proc.
thus you can find the subject.
iii) just test the subject and do whatever action
iv)do all the above steps in a sp and schedule it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.