Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Sending mails from SQL server

Author  Topic 

abacusdotcom
Posting Yak Master

133 Posts

Posted - 2005-04-28 : 11:07:58
Hi All,
I want to know if it possible to send a customise message from sql. Sql server will send this message when a particular event occurs or from a result of a query on a particular exceptionn report.

Over to the GURUS....

Thanks, as usual
Lekan

I sign for fame not for shame but all the same, I sign my name.

mikejohnson
Posting Yak Master

153 Posts

Posted - 2005-04-28 : 11:13:22
we use xp_smtp, does that answer your question?

declare @ResponseCode int
EXEC @ResponseCode = master..xp_smtp_sendmail
@FROM = '',
@FROM_NAME = '',
@TO = '',
@CC = '',
@BCC = '',
@subject = '',
@type = 'text/html',
@message = '',
@server = 'server'
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-04-28 : 17:21:35
If this is for DBA type stuff only and not an actual application, then I'd recommend SQL Mail:

http://support.microsoft.com/default.aspx?scid=kb;en-us;263556&sd=tech

Tara
Go to Top of Page
   

- Advertisement -