ok,
Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Trim
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Trim
.Subject = txtSubject.Text.Trim
.Body = sb.ToString
.Priority = CType(cboPriority.SelectedIndex, MailPriority)
If Not IsNothing(arlAttachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Add(mailAttachment)
Next
End If
End With
SmtpMail.SmtpServer = "127.0.0.1"
' " I have tried SmtpMail.SmtpServer = weiserver, localhost, smarthost,
and 127.0.0.1 "
SmtpMail.Send(mailMsg)
always the same error and my default SMTP virtual server is running.