c# - How can i send email one after one in a row? -
in form1 in backgroundworkerdowork event did: se.sendphotos(photofilesdir + "\\" + "photofiles.zip"); se.sendphotos(photofilesdir1 + "\\" + "photofiles.zip"); se.sendphotos(photofilesdir2 + "\\" + "photofiles.zip"); se.sendphotos(photofilesdir3 + "\\" + "photofiles.zip"); in se class sendemail did: public void sendphotos(string filenametosend) { try { mailaddress = new mailaddress("test@gmail.com", "user " + (char)0xd8 + " name", system.text.encoding.utf8); mailaddress = new mailaddress("test@test"); photosmessage = new mailmessage(from, to); photosmessage.body = "please check log file attachment have bugs."; string somearrows = new string(new char[] { '\u2190', '\u2191', '\u2192', '\u2193' ...