2009 SP1. I'm sending emails during the night from NAS with SMTP codeunit. Since July/Aug it stopped being reliable. 80% of the cases it works, 20% of the cases I get an SMTP error message, transport failed to connect to server (not an authentication issue since the same auth usually works) or a the automation variable has not been instantiated message ( again not a programming issue, because the same code usually works).
Since this change happened from one day to another and no change in Navision I suspect it was some Exchange or Windows update?
Exchange log says when it does not work it does not even try to connect.
I think - not sure - the second error is dependent on the first, then SMTP Automation is trying to connect, is busy, and thus when another code is calling it is too busy and cannot instantiate. I think.
Any ideas what it could be or what chould I check?
Would it help to use the new version of the Automation? You know from the 2009 R2 where you can also set the port. Standard port 25 is OK for me but I just think it is a new version maybe better. If yes, can you remind me how do I do this regasm and GacUtil thing?
0
Answers
Are there any other OCXes out there? Trying to get Dimac Jmail now.
I am also trying to use built-in objects, and the following code fails here:
objEmail.Configuration := objEmailConf;
"could not load the selected library"