Forum Discussion
tristaanogre
Esteemed Contributor
OK... did a quick experiement...
So, everywhere you have something of the pattern of
mConfig.Fields.Item(schema + "sendusing")
add .Value at the end. So, you should end up with
mConfig.Fields.Item(schema + "sendusing").Value = 2
and so on.
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! :(
- tristaanogre6 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.
Related Content
- 3 years agomengbinhao
- 2 months agoStoplight