Forum Discussion
royd
Regular 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.
tristaanogre
6 years agoEsteemed 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.
- 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?
- 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!!
Related Content
- 4 years ago
- 10 years ago
Recent Discussions
- 5 hours ago
- 3 days ago