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 Use the NumericUpDown Control

How To Get IP & Locations details of client machine in asp.net

Get control name in Page_Load event after post back by any control