CnSmtpConnection Emailing

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

CnSmtpConnection Emailing

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:20 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: CnSmtpConnection Emailing

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:20 pm

by Rich C >> Thu, 3 Jul 2008 13:57:18 GMT

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.




^^^^^^ I meant Reports not Forms for this bit!! ^^^^^^^^^^^^

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: CnSmtpConnection Emailing

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:20 pm

by Murray Symon >> Fri, 4 Jul 2008 6:47:52 GMT

Could it be because it will be trying to establish the TCP/IP connection from the client (where the form is running)? Perhaps all your other implementations have executed the CnSmtp send on the server node?
If this is so, look into whether the client can access the mail server. Telnet can help you there.

Murray.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 29 guests

cron