public static void Send_Email(string logpath) { DateTime now = DateTime.Now; string subj = "Job Report " + now.ToShortDateString(); string[] obj = new string[5] { "<h4>Job Report</h4><br>Job Ran successfully on: ", null, null, null, null }; now = DateTime.Now; obj[1] = now.ToString(); obj[2] = "<br>the log for the data inserted can be found here <a href='http://data.akaratak.com/log.txt'>Log</a><br> and can be downloaded here <a href='" + logpath + "'>"; obj[4] = "Download Excel</a><br>this log is generated daily"; string body = string.Concat(obj); StaticCalls.SendLogMail("*****@*****.**", subj, body); StaticCalls.SendLogMail("*****@*****.**", subj, body); StaticCalls.SendLogMail("*****@*****.**", subj, body); StaticCalls.SendLogMail("*****@*****.**", subj, body); StaticCalls.send_text("Email Sent : [email protected]"); StaticCalls.send_text("Email Sent : [email protected]"); StaticCalls.send_text("Email Sent : [email protected]"); StaticCalls.send_text("Email Sent : [email protected]"); }