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)
 getting email

Author  Topic 

GenerationWithoutName
Starting Member

26 Posts

Posted - 2002-12-26 : 13:03:32
I want to getting my email from SP. Can i do that such thing ???

mfemenel
Professor Frink

1421 Posts

Posted - 2002-12-26 : 14:00:12
Yes, in BOL, check out xp_sendmail, you can call this from your stored procedure provided you have SQL Mail set up. Here's an example

Exec master.dbo.xp_sendmail
@recipients='mfemenel',
@query='select * from northwind.dbo.customers',
@subject='Your subject line here',
@message='Here is the list you requested',
@attach_results ='TRUE',
@width =750

Mike
"oh, that monkey is going to pay"
Go to Top of Page

ValterBorges
Master Smack Fu Yak Hacker

1429 Posts

Posted - 2002-12-26 : 18:53:21
If you want to read email look into
xp_readmail

Go to Top of Page
   

- Advertisement -