I have installed SQL server 2008 r2 express in new machine. I have configured some profile in msdb database. I tried
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'DBMAIL',
@recipients = 'sakthivels@c8888ht.com',
@subject = 'Subject',
@body = 'Body of the mail',
@body_format = 'TEXT'
Unable to sent mail in sql server 2008 r2 select mailitem_id,sent_status,sent_date from msdb.dbo.sysmail_allitems order by mailitem_id desc it return as failed.