I'm performing a Mailman.VerifySMTPConnection call, using Visual Basic 6 and the ChilKat ActiveX control for Visual Basic 6.0. The call fails but in the Mailmain last error string I can see failReason2: 7.
Can anybody tell me what this means and also where a generic list of error codes can be found for the Visual Basic 6.0 Active X component?
Here's the code snippet that fails. I've obviously removed my password.
Dim email As ChilkatEmail ' New email Dim mailman As New ChilkatMailMan ' Mail service Dim f As frmEmailErrorDetails ' For display of error logs Dim success As Long ' Return code
Here's the debug log illustrating the error:
VerifySmtpConnection: DllDate: Mar 27 2014 ChilkatVersion: 184.108.40.206 UnlockPrefix: 30-day trial Username: DAVID-LT-I7:DAVID Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 1 Checking TCP/IP connectivity to the SMTP server. This does not check the login/password. Checking connectivity to SMTP server smtp.live.com:465 smtp_host: smtp.live.com smtp_port: 465 connect2: hostname: smtp.live.com port: 465 ssl: 1 connectImplicitSsl: connectSocket: domainOrIpAddress: smtp.live.com port: 465 connectTimeoutMs: 30000 connect_ipv6_or_ipv4: Multi-threaded domain to IP address resolution resolveHostname6: getAddressInfo: (leaveContext) (leaveContext) AddrInfoList: AddrInfo: ai_flags: 0 ai_family: 2 ai_socktype: 0 ai_protocol: 0 ai_addrlen: 16 ai_canonname: (NULL) (leaveContext) (leaveContext) connecting to IPV4 address... ipAddress: 220.127.116.11 createSocket: (leaveContext) connect: Waiting for the connect to complete... (leaveContext) (leaveContext) (leaveContext) pmConnect failed. (leaveContext) failReason1: 7 (leaveContext) Failed to connect to SMTP server. (leaveContext) Failed. (leaveContext)
The failReason = 7 indicates that the connection was rejected by the server for some reason known only to the server. One example might be if the server does not like the origin of the client connecting.
answered Apr 09 '14 at 12:39