嗨,我在 4 天内完成了我的项目,我从http://www.youtube.com/watch?feature=player_embedded&v=mGDnQchFZJg#获得了代码!,我真的可以使用帮助,在此先感谢。
jet it gives me an error in foreach loop
错误 1 当前上下文中不存在名称“s”
MailMessage poruka = new MailMessage();
poruka.From = new MailAddress(textBox4.Text);
poruka.Subject = textBox2.Text;
poruka.Body = textBox3.Text;
foreach (string s in textBox1.Text.Split()) ;
poruka.To.Add(s);
SmtpClient client = new SmtpClient();
client.Credentials = new NetworkCredential(textBox4.Text, textBox5.Text);
client.Host = "smtp.yahoo.com";
client.Port = 587;
client.EnableSsl = true;
client.Send(poruka);