public override void SendMsg() { getinfo info = new getinfo(url, text); string imgurl = info.PrintPageNodes(); if (imgurl != ":(") { getimg img = new getimg(); send sendmsg = new send(); sendmsg.SendEmail(address, img.Downloadimg(imgurl)); } }
private void sendbtn_Click(object sender, EventArgs e) { foreach (sendemaildata data in dbdata.jtttdata.ToList()) { getinfo info = new getinfo(data.url, data.text); string imgurl = info.PrintPageNodes(); if (imgurl != ":(") { getimg img = new getimg(); send sendmsg = new send(); sendmsg.SendEmail(data.address, img.Downloadimg(imgurl)); } //data.parseSiteWithKeyword(); } }