Notify by sending an email automatically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mai Phuong
    New Member
    • Sep 2009
    • 25

    Notify by sending an email automatically

    Hi all,

    I am using ASP.NET & SQL Server 2005. Whenever there are changes in database, I need to send an email automatically to administrator.

    I am very please if you can tell me how I can "send an email automatically to administrator" when programming with C#?

    Thank you very much!
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    I would recommend you start with just sending an email.
    Learn how to do that much. Then worry about the 'automatic' part, and reacting to a database change secondly.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      I don't see how this has anything to do with ASP.NET
      It seems to me that you are interested in configuring your MS SQL server to send an email when an event happens (like insert or update). You can do this using Triggers.

      Check out this article on Creating Email Triggers in SQL Server 2005.

      -Frinny

      Comment

      • Mai Phuong
        New Member
        • Sep 2009
        • 25

        #4
        Thank you Mr Frinny! It helps me a lot ^^

        Comment

        Working...