The class code came from
http://www.berezniker.com/content/pages/visual-foxpro/cdo-2000-class-sending-emails and the code used to send an email is something like the following.....
loMail = CREATEOBJECT("Cdo2000")
WITH loMail
.cServer = ALLTRIM(cmpany.smtpserver)
.nServerPort = nPort
.lUseSSL = .F.
IF cmpany.lEmailAuth
.nAuthenticate = 1
ENDIF
.cUserName = ALLTRIM(cmpany.emailID)
.cPassword = ALLTRIM(cmpany.emailPass)
.cFrom = ALLTRIM(cmpany.coemail)
.cHtmlBody = pcEmailBody
.cTo = pcEmailTo
.cCC = pcEmailCopy
.cSubject = pcEmailSubject
IF plPriority
.lPriority = .t.
ENDIF
IF plReadReceipt
.lReadReceipt = .t.
ENDIF
ENDWITH
IF loMail.Send() > 0
pSendError = .t.
FOR i=1 TO loMail.GetErrorCount()
lcMessage = loMail.Geterror(i)
MESSAGEBOX(lcMessage,64,"Error encountered while attempting to send email")
ENDFOR
ELSE
IF llNoMessage
ELSE
MESSAGEBOX("Email has been sent.",64,"blah")
ENDIF
ENDIF
>The Outlook Express is not required but if if it's installed and configured, CDO 2000 can use its configuration.
>What kind of authentication SMTP server required and what did you specify?
>What properties did you set for the class?
>
>>I am using Sergey's CDO 2000 email class and i'm encountering some problems that look like connection/authentication issues. The error msg is attached, but the returned error is....
>>
>>ERROR: :1429 # send # 375 # 0x00000213
>>CDO.Message.1 The transport failed to connect to the server.
>>
>>First off, is the following from
http://fox.wikis.com/wc.dll?Wiki~CdoEmail correct, that Outlook Express [or Outlook] has to be installed on the PC?
>>
>>"You will need to have Windows 2000 and MS Outlook Express for this to work, although I think you might be able to use a substitute for outlook express."
>>
>>I'm wondering if the basic auth and the SMTPUsesSSL settings are the issue. Strangly, moving away from a thirdparty email add-on that worked without having to specify an email account name (just a password) somne are reporting a "User name/password is required for basic authentication" message using the CDO method. Any ideas?