Comments on: A connection attempt failed https://www.limilabs.com/blog/connection-attempt-failed Using Limilabs .net components Tue, 03 Apr 2018 11:17:59 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Limilabs support https://www.limilabs.com/blog/connection-attempt-failed#comment-508313 Mon, 25 Mar 2013 11:26:20 +0000 http://www.limilabs.com/blog/?p=1587#comment-508313 In reply to Daniel.

@Daniel,

I think you are wrong: ConnectSSL method is awaited – thus execution “returns” to UI thread.

Use try..catch blocks when necessary:

using (Imap client = new Imap ())
{
    try
    {
        await client.ConnectSSL("imap.incorrect.com");
    }
    catch(Exception ex)
    {
        Log(ex.Message);
        return;
    }
    //...
    client.Close();
}

As connection is created asynchronously and .NET gives up after 20 seconds, you’ll get “A connection attempt failed…” exception after this time.

]]>
By: Daniel https://www.limilabs.com/blog/connection-attempt-failed#comment-507460 Sun, 24 Mar 2013 21:01:22 +0000 http://www.limilabs.com/blog/?p=1587#comment-507460 how about error handling in your component and detailed diagnostics?

For Windows 8 version when I enter wrong server address for Connect(SSL) async methods they just break without exception, without status, no info, nothing… they just go back to UI thread.

]]>
By: Limilabs support https://www.limilabs.com/blog/connection-attempt-failed#comment-19627 Tue, 12 Jun 2012 20:20:48 +0000 http://www.limilabs.com/blog/?p=1587#comment-19627 In reply to Manoj.

@Manoj,

No, you can’t send email without the services of a SMTP server.
You can however send email using recipient’s DNS server.

]]>
By: Manoj https://www.limilabs.com/blog/connection-attempt-failed#comment-19619 Tue, 12 Jun 2012 18:41:58 +0000 http://www.limilabs.com/blog/?p=1587#comment-19619 Hi,
I am writing an app where i need to send email to some clients. Can i do it using your component but without using SMTP Server.

Thx
Manoj

]]>
By: Limilabs support https://www.limilabs.com/blog/connection-attempt-failed#comment-1539 Fri, 28 Oct 2011 20:27:51 +0000 http://www.limilabs.com/blog/?p=1587#comment-1539 In reply to Carlos Vaca.

@Carlos

Does your application have enough permissions to create connection to the server (SocketPermission)?

]]>
By: Carlos Vaca https://www.limilabs.com/blog/connection-attempt-failed#comment-1538 Fri, 28 Oct 2011 16:32:36 +0000 http://www.limilabs.com/blog/?p=1587#comment-1538 I have this problem: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond…

I started tried with SSL and used the port that use my mail provider “GoDaddy”. I had connection problems, so i decided to use the connection without the SSL. I have the same way connection of the samples and i still have problems, i know it because a have a log of the issues. The ports are open in the server.

What else can i do?

]]>
By: Limilabs support https://www.limilabs.com/blog/connection-attempt-failed#comment-1537 Tue, 15 Feb 2011 19:18:42 +0000 http://www.limilabs.com/blog/?p=1587#comment-1537 @Robert
I don’t have such document, as you may be using hundred different smtp/pop3/imap servers on Windows or Linux. If you have a server already installed and running please refer to its manual on how to enable needed protocols, ssl and which ports server is using.

For a windows development box I can recommend hMailServer.
It’s easy to use and supports Smtp, Pop3, Imap, SSL and DKIM.

]]>
By: Robert Nguyen https://www.limilabs.com/blog/connection-attempt-failed#comment-1536 Tue, 15 Feb 2011 16:48:55 +0000 http://www.limilabs.com/blog/?p=1587#comment-1536 Do you have document on how to setup SMTP server or POP3. We bought your software and try to setup local development box to test smtp or pop3 email.

Thanks

Robert Ng

]]>