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. How to send mail automatically.

How to send mail automatically.

Scheduled Pinned Locked Moved ASP.NET
tutorial
6 Posts 5 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.
  • H Offline
    H Offline
    Honeyboy_20
    wrote on last edited by
    #1

    Hi , I am make simple application that send mail automatically after ending week .... so i don't know where i write my code ... what i do i am write my code in button and when i click on button , message sent to all members but i want this done automatically without admin clicks ... just sets date and message sent .

    S J T 3 Replies Last reply
    0
    • H Honeyboy_20

      Hi , I am make simple application that send mail automatically after ending week .... so i don't know where i write my code ... what i do i am write my code in button and when i click on button , message sent to all members but i want this done automatically without admin clicks ... just sets date and message sent .

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      You want a Windows Service. Make a Windows Service and just deploy it on a server. It's just that you need to connect to the same database that your application is connecting. It's the database content or configuration settings done in Windows Service that will act a trigger for emails and not application. You need to communicate with DB using same connection string as you used in your application for saving/reading data. There will be no manual steps involved. You will be able send email automatically every week.

      1 Reply Last reply
      0
      • H Honeyboy_20

        Hi , I am make simple application that send mail automatically after ending week .... so i don't know where i write my code ... what i do i am write my code in button and when i click on button , message sent to all members but i want this done automatically without admin clicks ... just sets date and message sent .

        J Offline
        J Offline
        Jamil Hallal
        wrote on last edited by
        #3

        you need to create a windows service and deploy it to the server once done you can schedule this windows service to send mails as per your requirments

        Regards, Jamil Check my latest article

        1 Reply Last reply
        0
        • H Honeyboy_20

          Hi , I am make simple application that send mail automatically after ending week .... so i don't know where i write my code ... what i do i am write my code in button and when i click on button , message sent to all members but i want this done automatically without admin clicks ... just sets date and message sent .

          T Offline
          T Offline
          The solution
          wrote on last edited by
          #4

          You can solve your issue by using two methods. 1> you have to create window service, deploy it and install it on server 2> you have to create SQL Job n upload it on server Hope this solution will help you

          H 1 Reply Last reply
          0
          • T The solution

            You can solve your issue by using two methods. 1> you have to create window service, deploy it and install it on server 2> you have to create SQL Job n upload it on server Hope this solution will help you

            H Offline
            H Offline
            Honeyboy_20
            wrote on last edited by
            #5

            Can I find any sample ?

            U 1 Reply Last reply
            0
            • H Honeyboy_20

              Can I find any sample ?

              U Offline
              U Offline
              ureyes84
              wrote on last edited by
              #6

              Yes, it is called Google.

              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