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 scchedule sending feedback mails

How to scchedule sending feedback mails

Scheduled Pinned Locked Moved ASP.NET
questioncsharphtmlasp-nettesting
5 Posts 3 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
    Sudhakar Pasupunuri
    wrote on last edited by
    #1

    Hi, I run a web portal where people buy tickets online. I am interested in taking their feedback 2 days after their journey. This requires me to send mails everyday to get their feedback. I created a HTML format mail which can be sent. As of now, Everyday I use a small web page and a submit button to send mails to those who have travelled. But How can I automate or schedule so that these mails are sent regularly. Is there any scheduler or can we do any automation in ASP.NET? Thanks -Sudhakar

    R 1 Reply Last reply
    0
    • S Sudhakar Pasupunuri

      Hi, I run a web portal where people buy tickets online. I am interested in taking their feedback 2 days after their journey. This requires me to send mails everyday to get their feedback. I created a HTML format mail which can be sent. As of now, Everyday I use a small web page and a submit button to send mails to those who have travelled. But How can I automate or schedule so that these mails are sent regularly. Is there any scheduler or can we do any automation in ASP.NET? Thanks -Sudhakar

      R Offline
      R Offline
      Rajesh_K_Sharma
      wrote on last edited by
      #2

      Hi Sudhakar, I have a suggestion. Create console application and write a code for Send Mail In C# Like using System.Web.Mail; using System.Windows.Forms; // Create a function public SendMail() { MailMessage objMail = new MailMessage (); objMail.From = "ABC@gamil.com" objMail.To = "PQR@gmail.com; objMail.Subject = "This is Test Mail; objMail.BodyFormat = MailFormat.Html ; objMail.Body = "Hi ,This is a test mail for you; try { SmtpMail.Send (objMail); } catch (System.Web.HttpException exHttp ) { MessageBox.Show("Exception occurred:- " + exHttp.ToString() ) ; } finally { objMail = null; } } Write Body in HTML Format.A good idea is store all email who have travelled in XML and read from XML and send Mail to Client. To schedule sending email every day .Windows schedule help you.I Mean to say you can shedule exe in windows schedular.If u need code then let me know i will send. I hope this will you.

      rajesh

      M 1 Reply Last reply
      0
      • R Rajesh_K_Sharma

        Hi Sudhakar, I have a suggestion. Create console application and write a code for Send Mail In C# Like using System.Web.Mail; using System.Windows.Forms; // Create a function public SendMail() { MailMessage objMail = new MailMessage (); objMail.From = "ABC@gamil.com" objMail.To = "PQR@gmail.com; objMail.Subject = "This is Test Mail; objMail.BodyFormat = MailFormat.Html ; objMail.Body = "Hi ,This is a test mail for you; try { SmtpMail.Send (objMail); } catch (System.Web.HttpException exHttp ) { MessageBox.Show("Exception occurred:- " + exHttp.ToString() ) ; } finally { objMail = null; } } Write Body in HTML Format.A good idea is store all email who have travelled in XML and read from XML and send Mail to Client. To schedule sending email every day .Windows schedule help you.I Mean to say you can shedule exe in windows schedular.If u need code then let me know i will send. I hope this will you.

        rajesh

        M Offline
        M Offline
        miniThomas
        wrote on last edited by
        #3

        How do u shedule exe in windows schedular.Colud u pls send code for the same. Thanks Mini

        R 1 Reply Last reply
        0
        • M miniThomas

          How do u shedule exe in windows schedular.Colud u pls send code for the same. Thanks Mini

          R Offline
          R Offline
          Rajesh_K_Sharma
          wrote on last edited by
          #4

          To add the application to the Task Scheduler .Go to ControlPanel/ScheduledTasks. Regards

          rajesh

          M 1 Reply Last reply
          0
          • R Rajesh_K_Sharma

            To add the application to the Task Scheduler .Go to ControlPanel/ScheduledTasks. Regards

            rajesh

            M Offline
            M Offline
            miniThomas
            wrote on last edited by
            #5

            Hello Rajesh, Is there any way we can achieve the same through coding instead of accessing the control panel Thanks, Mini

            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