Forum Discussion
tristaanogre
Esteemed Contributor
What happens if you put a breakpoint in the code and step through? At what point does the exception get thrown?
royd
6 years agoRegular Contributor
Hi Robert,
Ran the test as suggested -
It steps through till -
mConfig.Fields.Item(schema + "sendusing") = 2;
Then jumps to:
Log.Error("E-mail cannot be sent", exception.description);
Thanks.
- tristaanogre6 years agoEsteemed Contributor
OK... did a quick experiement...
So, everywhere you have something of the pattern ofmConfig.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.
- royd6 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?
Related Content
- 4 years ago
- 10 years ago
Recent Discussions
- 5 hours ago
- 3 days ago