How to send email through Sql Server 2008

Management >> Database Email >> Create profile and configure smtp Serevr or you can follow the given Link of Mr Pinaldave..

Step 1 : Create profile and configure smtp Serevr
 Step 2 :
sp_CONFIGURE 'show advanced', 1
GO
RECONFIGURE
GO
sp_CONFIGURE 'Database Mail XPs', 1
GO
RECONFIGURE
GO

Step 3:
USE YourDataBase
GO
EXEC sp_send_dbmail @profile_name='Your Profile',
@recipients='
recipient email',
@subject='Test message',
@body='This is the body of the test message.
Congrates Database Mail Received By you Successfully.'

or Directly right click on Database Mail and you will get sending mail enterface.
 


Comments

Popular posts from this blog

How to create RSS Feed in Asp.Net

Auto generate change scripts in SQL Server Management Studio SSMS for tables

HOW TO Use the NumericUpDown Control