Dim m As New MailSender
Dim ln As String = vbcrlf & vbcrlf '定义两个换行
m.Host = "smtp.hotmail.com"
m.Account = "jinzhene"
m.Password = "1234in"
m.From = "jinzhengbe@hotmail.com"
For Each dr As DataRow In DataTables("订单处理").Select("ischeck"="5")
m.To = dr("邮箱")
m.Title = "订单错误"
m.Content = dr("用户名") & dr("尊称") & ":" & ln & "因为你的订单中商品名为" & dr("商品名") & "的商品" & dr("productRemarks")
m.Content = m.Content & "有问题" & dr("金额") & "请及时回复此信息!" & ln & "韩国唐人街" & vbcrlf & Date.today
m.SendAsync()
Next
请问一下上面这段代码,哪里有问题?怎么邮件发不出去啊?
[此贴子已经被作者于2012-7-17 6:04:37编辑过]