public void SendMail()
{
DateTime dueDate = Convert.ToDateTime("06/30/2014");
DateTime currentDate = DateTime.Now;
System.TimeSpan diffDays = dueDate.Subtract(currentDate);
if (diffDays.Days == 7)
{
}
}
Build a windows service as above and schedule it run once a day.