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. Database & SysAdmin
  3. Database
  4. How to send email on perticular date and time?

How to send email on perticular date and time?

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorialquestion
3 Posts 2 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.
  • V Offline
    V Offline
    vicky457
    wrote on last edited by
    #1

    Hi, I need to implement a function that sends emails on a perticular date and time. The date and time is specified by the user when he posts a new event into a on-line calendar. The user should be allowed to decide when an event notification email will be sent to a group of people. The database used for the project is SQL server. I learn about SQL server job scheduler can do it. But I don't know how to add a job into SQL server job list when a record is submited into database from web form. Is there anybody having any advices? Thanks in advance!

    Q 1 Reply Last reply
    0
    • V vicky457

      Hi, I need to implement a function that sends emails on a perticular date and time. The date and time is specified by the user when he posts a new event into a on-line calendar. The user should be allowed to decide when an event notification email will be sent to a group of people. The database used for the project is SQL server. I learn about SQL server job scheduler can do it. But I don't know how to add a job into SQL server job list when a record is submited into database from web form. Is there anybody having any advices? Thanks in advance!

      Q Offline
      Q Offline
      Qaiser Mehmood Mughal
      wrote on last edited by
      #2

      firstly add the time and date from web form to database table for each user. then add only one job that run after each minute in Management-->SQL Jobs. Now what this job will be done ?. It will first check the date and time of users and then it will send mail using following code if the user is reach to its exact time. Code you can view from following link: http://www.vbforums.com/archive/index.php/t-280616.html and read about how to add a new SQL server job in database in detail. Qaisar Mehmood Mughal ............................................................................... May Allah gave u success in all fields of life. (Aameen) ............................................................................... Software Engineer ISF - Islamabad Software Factory 3rd Floor, Software Technology Park Constitution Avenue, Islamabad 44000, Pakistan www.isf.com.pk qaisar@isf.com.pk , qmmughal@gmail.com Phone: +92 (51) 2825387 : 0321-5226623

      V 1 Reply Last reply
      0
      • Q Qaiser Mehmood Mughal

        firstly add the time and date from web form to database table for each user. then add only one job that run after each minute in Management-->SQL Jobs. Now what this job will be done ?. It will first check the date and time of users and then it will send mail using following code if the user is reach to its exact time. Code you can view from following link: http://www.vbforums.com/archive/index.php/t-280616.html and read about how to add a new SQL server job in database in detail. Qaisar Mehmood Mughal ............................................................................... May Allah gave u success in all fields of life. (Aameen) ............................................................................... Software Engineer ISF - Islamabad Software Factory 3rd Floor, Software Technology Park Constitution Avenue, Islamabad 44000, Pakistan www.isf.com.pk qaisar@isf.com.pk , qmmughal@gmail.com Phone: +92 (51) 2825387 : 0321-5226623

        V Offline
        V Offline
        vicky457
        wrote on last edited by
        #3

        Thank you very much, Qaisar! It definitely will help a lot.

        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