Forum Discussion
royd
6 years agoRegular Contributor
Okay, I changed them to:
mConfig.Fields.Item(schema + "sendusing").Value = 2; // cdoSendUsingPort
mConfig.Fields.Item(schema + "smtpserver").Value = smtpServer;
mConfig.Fields.Item(schema + "smtpserverport".Value) = smtpPort;
mConfig.Fields.Item(schema + "sendusername").Value = userLogin;
mConfig.Fields.Item(schema + "sendpassword").Value = userPassword;
mConfig.Fields.Item(schema + "smtpauthenticate").Value = autentificationType;
mConfig.Fields.Item(schema + "smtpconnectiontimeout").Value = connectionTimeout;
mConfig.Fields.Item(schema + "smtpusessl").Value = useSSL;
mConfig.Fields.Update();
Still getting the same error! :(
tristaanogre
6 years agoEsteemed Contributor
Is the exception still popping at the same code line?
- royd6 years agoRegular Contributor
I think we are making some proress!
It is going through every line till -
mMessage.Send();
... and then the exception takes place at the above line? I guess for some reason it can't send the message!!
- tristaanogre6 years agoEsteemed Contributor
Change the Log.Error to change the word "description" to "message". Let's see if we can find out what the actual exception is.
- royd6 years agoRegular Contributor
Okay, now we got (Additional info):
"The transport failed to connect to the server."