vanisudha2000
Programmer
Hello,
I am having a stored procedure which is like this below,
How can I send an email from this stored procedure
Can you please help me with the code ...
Thanks in advance...
CREATE PROCEDURE [dbo].[SendEmail]
As
BEGIN
select Alias,ExpireAt,CreatedAt,(completetime*60 - 30)
From Issues
Where status = 'Open' and
CreatedAt < ExpireAt
--!!!! HERE I WANT TO SEND EMAIL TO THE ALIAS SELECTED WITH SOME MESSAGE ----!!!!
END
I am having a stored procedure which is like this below,
How can I send an email from this stored procedure
Can you please help me with the code ...
Thanks in advance...
CREATE PROCEDURE [dbo].[SendEmail]
As
BEGIN
select Alias,ExpireAt,CreatedAt,(completetime*60 - 30)
From Issues
Where status = 'Open' and
CreatedAt < ExpireAt
--!!!! HERE I WANT TO SEND EMAIL TO THE ALIAS SELECTED WITH SOME MESSAGE ----!!!!
END