Attempt to connect to gmail account failed

Hi,
It’s been several weeks since I have a lot of problems with Em client, mostly for sending emails.
Now I cannot send any email and cannot even upload my Inbox from Gmail.
I tried several things without success so I send this request.

(SMTP) an attempt to connect with my gmail account has failed.

I use the version : 8.2.1237 (b402cf3)

Here is a log that may help you to tell me how to solve this issue :

04:34:06.692|011| AccountBase.ChangeOnlineState : STATE CHANGE TO online due User
04:34:06.694|011| eM Client 8.2.1237.0
04:34:06.730|011| >>> FolderActivated(folder: /All Mail [All]):
04:34:06.736|01B| >>> ListFoldersAsync(): Start
04:34:06.747|006| >>> Starting account synchronization
04:34:07.078|010| 01: Connecting to imap.gmail.com:993 with TLS …
04:34:07.093|010| 01: — CLOSE: PRIMARY START
04:34:07.095|010| 01: — CLOSE: PRIMARY FINISHED
04:34:07.102|01B| >>> COMMAND CONNECTION EXCEPTION (retry: True): MailClient.Accounts.ConnectionException: Failed opening connection to server.
—> System.IO.IOException: Unable to read data from the transport connection: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte…
—> System.Net.Sockets.SocketException (10053): Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError error, Boolean forAsyncThrow)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ReceiveAsync(Socket socket, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.ReceiveAsync(Memory1 buffer, SocketFlags socketFlags, Boolean fromNetworkStream, CancellationToken cancellationToken) at System.Net.Sockets.NetworkStream.ReadAsync(Memory1 buffer, CancellationToken cancellationToken)
at System.Net.Security.SslStream.FillHandshakeBufferAsync[TIOAdapter](TIOAdapter adapter, Int32 minSize)
at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Security.SslStream.ProcessAuthentication(Boolean isAsync, Boolean isApm, CancellationToken cancellationToken)
at System.Net.Security.SslStream.AuthenticateAsClientAsync(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken)
at MailClient.Imap.Base.Connection.<>c__DisplayClass76_0.<b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at MailClient.Imap.Base.Connection.<>c__DisplayClass76_0.b__0(CancellationToken ct)
at MailClient.Imap.Base.Connection.<>c__DisplayClass73_0.b__1(Stream _)
at MailClient.Imap.Base.TransportPipe.<>c__DisplayClass34_0.<b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at MailClient.Imap.Base.TransportPipe.<>c__DisplayClass34_0.b__0(ValueTuple2 t) at MailClient.Imap.Base.TransportPipe.UpgradeStreamAsync(Func2 callback)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at MailClient.Imap.Base.TransportPipe.UpgradeStreamAsync(Func2 callback) at MailClient.Imap.Base.TransportPipe.UpgradeStreamAsync(Func2 callback)
at MailClient.Imap.Base.Connection.ConnectAsync(Func2 getStream, CancellationToken cancellationToken) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at MailClient.Imap.Base.Connection.ConnectAsync(Func2 getStream, CancellationToken cancellationToken)
at MailClient.Imap.Base.Connection.ConnectAsync(String receiveHost, Int32 receivePort, Boolean explicitSsl, RemoteCertificateValidationCallback validationCallback, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
— End of stack trace from previous location —

— End of inner exception stack trace —
at System.Net.Security.SslStream.g__InternalFillHandshakeBufferAsync|182_0[TIOAdapter](TIOAdapter adap, ValueTask1 task, Int32 minSize) at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at MailClient.Imap.Base.Connection.<>c__DisplayClass76_0.<<ConnectAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at MailClient.Imap.Base.TransportPipe.<>c__DisplayClass34_0.<<UpgradeStreamAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at MailClient.Imap.Base.TransportPipe.UpgradeStreamAsync(Func2 callback)
at MailClient.Imap.Base.Connection.ConnectAsync(Func2 getStream, CancellationToken cancellationToken) at MailClient.Imap.Base.Connection.ConnectAsync(Func2 getStream, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
— End of inner exception stack trace —
at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ConnectionPool.AcquireConnectionAsync(Folder mailFolder, Boolean noSelect)
at MailClient.Protocols.Imap.ConnectionContext.CreateContextAsync(ImapAccount account)
at MailClient.Protocols.Imap.ImapFolderSynchronizer.ListFoldersAsync(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ImapFolderSynchronizer.GetFolderList(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass14_1.b__0(WorkerStatus status, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ImapActionCommand.<>c__DisplayClass13_0.<.ctor>b__0(WorkerStatus ws, CancellationToken ct)
at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)

Regards,
Joel

If you have already tried removing and re-adding your Gmail account, then if you have any optional eg: Firewall , Security , Antivirus , VPN program installed try disabling those temporarily to test.

If you haven’t yet tried removing and re-adding your Gmail account, do that first, but make a (Backup) of eM Client via “Menu / Backup” before removing the account incase u need to restore.

Also when going through the automatic setup email wizard, make sure you (allow eM Client access to your Gmail account) near the end of the wizard. Your browser should open with the Gmail allow window.

I suspect either you have a problem with the account in eM Client which may have eg: become possibly corrupted, or you have a program running resident blocking or interfering with eM Client.