For Each dr As DataRow In DataTables(“xxx”).DataRows Dim m As New MailSender m.Host = "smtp.21cn.net" m.Account = "xiaoliu" m.Password = "xiaoliu1234567" m.From = "xiaoliu@Sina.com.cn" m.To = dr("邮箱") m.Title = "初稿已经完成" m.C m.AddAttachments(dr("附件")) m.SendAsync() Next