by Rich C >> Thu, 3 Jul 2008 13:53:06 GMT
Hi all,
Ok, i have been using the CnSmtpConnection class for sending emails for a few different projects now, i find it very simple and it does the job well. However, up until this point those projects have consisted of reports and web-enabled forms, and i am now trying to use it within a form method and having problems. Creating the connection instance is fine, along with setting the usual parameters (name, message, sendTo etc), however when it reaches the conn.send line it seems to be constantly trying to open up a connection. This continues until i eventually close the session down.
I find this strange as it has worked flawlessly for all other methods of using the class and the documentation doesn't show any code that i am not using. I am using a handler to catch any CnSmtpConnectionExceptions but nothing is being thrown.
Can anybody help in this? I am sure it must be a simple indicator or something. Other than that i may create a form with just this method in it as i know it works on Forms - that seems a bit weak though.
Thanks!
Rich