Email notifications working fine and there is no issues..also without if condition that script is working and received email alert from database..
I received lot of mail wheather rows selected or no rows selected that query...I want receive mail only rows selection, if no rows don't want receive mail...