Mails remain in outbox due to SocketException

Since a few months, I got the problem that in most cases - though not every time - I want to send an email, it gets stuck in the mail outbox due to “software problems”. In most of the cases, though again not always, I’m able to send it if I go to the outbox and click on “send message”.
I got a Pixel 7 and Android 15, could be that this issue is related to the Android 15 update? It’s weird thst I didn’t find any related post (I assume many are using a Pixel 7 and/or Android 15). I’ve been using K9 for about 10 years and never had such problems.

Now it happened again. The precise error message is SocketException: Software caused connection abort.
already tried to reinstall the app.

No solution in sight? Seems like I have to switch to another mail app then.

Maybe you need to send logs with full exception. Does it happen on wifi or mobile data? Is VPN involved?

Both. Where do I find the log files on android?

Sertings / General settings / Debugging

Here you can enable debug logging

Once the issue happens again then at same menu entry you can export debug logs in the 3dot menu

Here’s the file k9mail-logs.txt - Google Drive

Any idea? It’s really annoying. I’m close to switching to another app.

Mhh … still I would think it is the server side which causes the issue, not the client. (But can only read the log on my small phone…)
Did you test with a different mail app in parallel if it works more reliable? When ypu are using IMAP it should not be a problem.

This is a problem of four different accounts, so four different providers.

Ok, yes, so server side might be ruled out.
Do you use any VPN or other security related software? If yes, can you try without it?
Also, did you try in parallel with some other mail app?

I have no active VPN and Gmail works fine. I’m pretty sure that this is an issue related to Android 15.

Just wondered if anyone got to the bottom of this? I get this error on at least 50% of emails I send, with no obvious pattern of which emails go and which get stuck. Almost every email will send if I take it out of the Outbox, put back in drafts and then send again. It’s a workaround but it’s a pain.

I’m on Android 13 and have the same issue. If I save to Drafts and resend it will go the 2nd time without fail.

I’m also getting various problems since my Android phone migrated to Android 16. Never had these problems before. The app freezes, mails are not immediately sent or go in the draft box or when a mail is sent or even when I try to delete a mail, the mail list goes blank. Never had these problems before….

This became so bad as a problem that I had to remove K9, back to the Gmail app now, which I don’t like.

Maybe there will be a bug fix or something to address this problem which is hard to describe. The app just crashes from time to time. Also, when you have several different mail boxes, the first time you go to any one of them, you see the different folders, but then if you go to the inbox folder and then try to go to see the other folders, they just don’t show up. I have to change to another mailbox and then come back to see them all again… It just seems as if the app freezes and then needs several seconds to execute the order…

Hello, is there any news on this issue? I have used K-9 for years, but I am now considering switching to a different app for the first time. Apparently, this error occurs quite randomly: sometimes emails are sent and sometimes they are not. It doesn’t matter whether it’s 5G or Wi-Fi; it happens with different mail providers. Sometimes, when I open the outbox folder and click ‘Send emails’, the email is sent; sometimes it isn’t. Sometimes I get the error message immediately and sometimes after a few hours (during which time I thought the email had been sent). Sometimes the error message is the one mentioned here (“SocketException: Software caused connection abort”), but sometimes it is just “Unable to send message”. And, even more strangely, sometimes the email remains in the outbox folder, I get an error message but the recipient receives the email.

Hi @chico-ramone **
**
Please see my reply on these two posts for the email stuck in outbox issue.

One: Mail sits in outbox - #3 by Zeroid

Two: Outgoing mail is stuck - really a new problem! - #2 by Zeroid

Are you looking for help with a specific issue from the examples you mention or enquiring more generally?

Dear @Zeroid,

Thank you for your reply.

Moving the email to draft doesn’t work.

The errors message I get never include “Retries exceeded”.

I am really sorry to say this, but after using K-9 for many years, this issue will probably make me switch to a different app (but I still have hope!). On a couple of occasions, I have needed to send an email and, no matter how hard I tried, I couldn’t get it to work. On one occasion, I needed to send a document to someone in front of me and couldn’t do it, so I had to call someone else and ask him to send it from his computer.

I have experienced this issue with both K-9 and Thunderbird, as well as with both stock Android ROM and LineageOS. The behaviour is always unpredictable: sometimes emails are sent and sometimes they are not, with no noticeable pattern. Sometimes if I just create a new email, with the same content and same recipient, I am able to send it. But sometimes, I’m not.

If you need any log or more information, please let me know.