Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CDO.Message.1 The transport failed to connect to the ser
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01514215
Message ID:
01514224
Views:
61
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		&& default to 25
 	.lUseSSL = .F.
	
	IF cmpany.lEmailAuth
		.nAuthenticate = 1 	&& cdoBasic	
	ENDIF
 
 	.cUserName = ALLTRIM(cmpany.emailID)
	.cPassword = ALLTRIM(cmpany.emailPass)
 	.cFrom = ALLTRIM(cmpany.coemail)  && .cUserName
	.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()
		* ? i, loMail.Geterror(i)
		lcMessage = loMail.Geterror(i)
		MESSAGEBOX(lcMessage,64,"Error encountered while attempting to send email")		
	ENDFOR
ELSE
	IF llNoMessage
		*--- nothing
	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?
Previous
Reply
Map
View

Click here to load this message in the networking platform