Sending Email From SQL Stored Procedure

From Logic Wiki
Jump to: navigation, search


To Send email from DB server

EXEC msdb.dbo.sp_send_dbmail
 @recipients = 'Group-OTBExternal@softwire.com',
 @body = @lMessage,
 @subject = 'Booking creation check',
 @profile_name = 'localhost'


TODO : Mail Server Settings ?