You need to configure db_email feature
http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/
IF (SELECT COUNT(*) FROM tbl) =0
BEGIN
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Admin',
@recipients = 'kkkk@gmail.com',
@subject = 'The table is empty' ;
END
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Blog:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance