Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Auto Email Send

Auto Email Send

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminsales
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sarfaraj Ahmed
    wrote on last edited by
    #1

    Hello SQL Server Databse keeps order information. I want to send an automatic email to customer if order has been placed. Any Solution Thanks Sarfaraj

    Sarfarj Ahmed

    L C R 3 Replies Last reply
    0
    • S Sarfaraj Ahmed

      Hello SQL Server Databse keeps order information. I want to send an automatic email to customer if order has been placed. Any Solution Thanks Sarfaraj

      Sarfarj Ahmed

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Yeah, the solution would be to automatically send an email when the order is placed. Might want to do that somewhere around your insert statement in your code, since that's probably where the order is complete in your end.

      1 Reply Last reply
      0
      • S Sarfaraj Ahmed

        Hello SQL Server Databse keeps order information. I want to send an automatic email to customer if order has been placed. Any Solution Thanks Sarfaraj

        Sarfarj Ahmed

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Did you consider trying to write some code to do this ? I don't see what SQL Server has to do with it.

        Christian Graus Driven to the arms of OSX by Vista.

        S 1 Reply Last reply
        0
        • S Sarfaraj Ahmed

          Hello SQL Server Databse keeps order information. I want to send an automatic email to customer if order has been placed. Any Solution Thanks Sarfaraj

          Sarfarj Ahmed

          R Offline
          R Offline
          Ranjit Viswakumar
          wrote on last edited by
          #4

          It is difficult and complicated to setup SQL database triggers to send email when the database is updated. You would also have to run a local SMTP server on the SQL server which is often discouraged. The best thing to do would have your code update the SQL database, check to see if it was successful, and then use the SmtpMail class to send mail- http://quickstarts.asp.net/QuickStartv20/util/classbrowser.aspx?assembly=System.Web,%20Version=2.0.0.0,%20Culture=neutral,%20PublicKeyToken=b03f5f7f11d50a3a&namespace=System.Web.Mail&class=SmtpMail[^] Good luck! Ranjit Viswakumar Professional Services Specialist HostMySite.com[^]

          S 1 Reply Last reply
          0
          • R Ranjit Viswakumar

            It is difficult and complicated to setup SQL database triggers to send email when the database is updated. You would also have to run a local SMTP server on the SQL server which is often discouraged. The best thing to do would have your code update the SQL database, check to see if it was successful, and then use the SmtpMail class to send mail- http://quickstarts.asp.net/QuickStartv20/util/classbrowser.aspx?assembly=System.Web,%20Version=2.0.0.0,%20Culture=neutral,%20PublicKeyToken=b03f5f7f11d50a3a&namespace=System.Web.Mail&class=SmtpMail[^] Good luck! Ranjit Viswakumar Professional Services Specialist HostMySite.com[^]

            S Offline
            S Offline
            Sarfaraj Ahmed
            wrote on last edited by
            #5

            Thank you very much, i will folloe your instruction.

            Sarfarj Ahmed

            1 Reply Last reply
            0
            • C Christian Graus

              Did you consider trying to write some code to do this ? I don't see what SQL Server has to do with it.

              Christian Graus Driven to the arms of OSX by Vista.

              S Offline
              S Offline
              Sarfaraj Ahmed
              wrote on last edited by
              #6

              could you please give some instruction

              Sarfarj Ahmed

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups