For Each dr As DataRow In DataTables("表名").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(projectpath & "Attachments\" & dr("文件")) m.SendAsync() Next