Is there any particular reason you're not using CDONTS? Is that old school?
That's what I used in VB6 and it worked like a charm. If you're interested,
post back and I'll post my code.
Robin S.
-----------------------------
<me******@gmail.comwrote in message
news:11*********************@e1g2000hsg.googlegrou ps.com...
>- The strToList is an array of email addresses.
Public Shared Sub SendMail_CDO(ByVal strFrom As String, ByVal
strToList() As String, ByVal subject As String, ByVal body As String)
Const Source As String = "Config.SendMail_CDO"
Dim iConf As New CDO.Configuration
Dim Flds As ADODB.Fields
Flds = iConf.Fields
Flds(CDO.CdoConfiguration.cdoSendUsingMethod).Valu e =
CDO.CdoSendUsing.cdoSendUsingPort
Flds(CDO.CdoConfiguration.cdoSMTPServer).Value =
Config.SmtpServer
Flds(CDO.CdoConfiguration.cdoSMTPServerPort).Value = 25
Flds(CDO.CdoConfiguration.cdoSMTPAuthenticate).Val ue =
CDO.CdoProtocolsAuthentication.cdoAnonymous.cdoAno nymous
Flds.Update()
Dim strTo As String
Try
For i As Int32 = 0 To strToList.Length - 1
Dim iMsg As New CDO.Message
iMsg.Configuration = iConf
strTo = strToList(i).Trim
iMsg.From = strFrom
iMsg.To = strTo
iMsg.Subject = subject
iMsg.TextBody = body
Trace.WriteTrace("Sending Email to " + strToList(i))
iMsg.Send()
Trace.WriteTrace("Sent Email to " + strToList(i))
Next
Catch ex As Exception
End Try
End Sub
Does this help, or do you you need some more context?