So many thanks with all the great responses, I have been messing with different memcache setups and various things in this install, so will go for another clean install and check the outlook.com then try gmail@work again.
Prob have to do some reading as its not a @gmail.com domain but uses gmail.
Also just as a trial not done any of the database or php config its all default php7.0
No # Header always set Strict-Transport-Security "max-age=15768000; preload" as you will see its remarked out.
No mem cache or redis either, I did have redis only as a distributed mem cache as it complained like hell but that was just another trial.
Connected straight away and the mail app is very much like the PDF viewer, excellent app, really good.
The initial sync took about 30 secs, the initial swirl to open inbox about 5 and the current message 10 secs max.
Hey Stuart, i was having similar troubles, as i use two step verification on my google account. The way that i got the nextcloud emailing feature to work was to make an app specific password for my nextcloud server by going to my google account settings and adding the application. Google then creates a password, which i used for the nextcloud server login (while keeping my typical username credentials the same). i hope this works for you too.
Also if you are sane and maybe just use a normal landscape monitor, it would be great if the mail app could buffer a page of emails, so it is one page in front.
To scroll down to the bottom of the emails and then grab the next page makes the mail app quite slow to use, but that is only a small quibble.
Here are the steps I documented to configure the NextCloud eMail app to work with GMail. I had similar issues on multiple GMail accounts, and these various scenarios helped me work through them. Hopefully they will help you.
I have the same issue, impossible to connect to gmail.
I have less secure app enable, simple password, imap is open.
It should work, but it doesnt, someone is able to make it work with gmail or is it not possible ?
THX