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 2005 Forums
 Transact-SQL (2005)
 Send email

Author  Topic 

Mondeo
Constraint Violating Yak Guru

287 Posts

Posted - 2007-08-07 : 08:54:51
Is there any way to send an email (via SMTP) from within a stored procedure?

Thanks

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-08-07 : 08:57:19
yes.
look at msdb.dbo.sp_send_dbmail stored procedure

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -