Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending emails using sqlmail
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00994788
Message ID:
00995216
Views:
20
This message has been marked as the solution to the initial question of the thread.
>when the Stock of an item in my warehouse reaches the safety stock of the reorder point I will need to send an email to specific people notifiying about the action, How do i do that?
>
>do i need to use a trigger or is there any other way, manly my question has to do with, how to use the sqlmail to send email through exchange

You can use a trigger or you can run a job on regular intervals that looks for stock that has to be reordered. In any case you should make sure that email is triggered only once. Anyway, I woul rather write data to another table and than use Sql Agent or even outside application to periodically check it and send emails out.
You can use xp_sendmail system stored procedure to send emails. There're other alternatives. Take a look at

- http://www.sqlteam.com/item.asp?ItemID=401
- http://www.orcsweb.com/articles/sendmailsql.aspx
- http://www.sqlteam.com/item.asp?ItemID=5908
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform