This is from the: "SmtpMail.Send(mailMsg)" command.
"Charles" <cwil...@bellsouth.net> wrote in message
news:040501c365c9$ed9a4c50$a401...@phx.gbl...
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.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
"Charles Wildner" <cwil...@bellsouth.net> wrote in message
news:e0V0tSdZ...@TK2MSFTNGP12.phx.gbl...
<smtpMailObject>.smtpserver.insert(0,"server name")
insted of
<smtpMailObject>.smtpserver = "server name"
Agustin.
"MS News (MS ILM)" <sql_ag...@hotmail.com> wrote in message
news:e4Y4hVdZ...@tk2msftngp13.phx.gbl...
You are the best.
Thank you. How did you come up with this?
What is the reasoning behind it working.
Is this a SmtpServer Collection that the system will try until it finds a
good one??
Thanks
"Agusitn Rodriguez" <kansas.d...@cox.com> wrote in message
news:OTp$hmeZDH...@TK2MSFTNGP12.phx.gbl...
Is this a SmtpServer Collection that the system will try until it finds a
good one??
No, But but you can handle exceptions and have the property updated to the
next server on a list and retry.
"MS News (MS ILM)" <sql_ag...@hotmail.com> wrote in message
news:emTNXweZ...@TK2MSFTNGP12.phx.gbl...