Database Mail Views (Transact-SQL)
SQL Server 2008 R2
Database Mail has the following views for displaying Database Mail e-mail content, status of e-mails, and any messages received, such as errors logged by Database Mail. These views are in the msdb database.