How to scchedule sending feedback mails
-
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
-
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
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
-
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
How do u shedule exe in windows schedular.Colud u pls send code for the same. Thanks Mini
-
How do u shedule exe in windows schedular.Colud u pls send code for the same. Thanks Mini
To add the application to the Task Scheduler .Go to ControlPanel/ScheduledTasks. Regards
rajesh
-
To add the application to the Task Scheduler .Go to ControlPanel/ScheduledTasks. Regards
rajesh
Hello Rajesh, Is there any way we can achieve the same through coding instead of accessing the control panel Thanks, Mini