Apple.mail - cannot reliable connect to IMAP server.
I have a 2020 iMac, 500 GB SSD, 27” monitor, macOS 26.0.1
Multiple times a day I having a problems with mail not sending from the Mail.app because of a failure to connect to the SMTP and/or iMAP serverS. This can be confirmed by going to Mail > Window >Connection doctor and see both the IMAP and SMTP trying, but failing to connect. What works for me once was going to Mail > Settings > Accounts > iCloud Account > Server Settings > Outgoing Mail Account >finding that [iCloud Offline] was selected. I clicked on [iCloud] and that solved the problem.
However, this has happened several times a day since then and when I follow the same path, [iCloud Offline] is not there. Only iCloud is there and it is selected.
Restarting the computer usually fixes it but then, later, I'll go back to Mail again to find I am disconnected and need to restart to re-establish the connection to the IMAP server.
Help! Please???
iMac 27″, macOS 26.0