So this got me wondering the "WHY" part... WHY do we need an outside non-Aware service when Aware says it handles incoming email.
Like Mark, I've had sketchy results in the past.
The Docs mentioned something about "Since v5.7, Aware .....".
Well, Since V7, Aware offered a way to handle additional Email Accounts.
You have the initial hardcoded mail server info in the BSV (by double-clicking on the BSV name).
You can alternatively place this info in SystemSettings (a more flexible option than hardcoded in the BSV at least).
Then users needed the ability to send from more than 1 outgoing address. Both aforementioned methods allowed only 1 login username to the mail server. So if you needed emails to come from "Info@Acme.com" and "Renewals@Acme.com", that was handled by the new Right-click on the Business Objects Element and you could add a new Outgoing Email Account table and create as many accounts as you needed.
So all the outgoing stuff was pretty straightforward (once you figured it out).
But Incoming was finicky - and I think a few years back a strategy was to, using the Scheduler, to frequently disconnect & reconnect to the Mail Server (I thought this was a method to reduce issues if incoming stopped working, but I may be wrong.)
Anyway, tonight I set up a connection to a outlook.office365.com and started polling for incoming messages.
I ran across several issues - mostly related to what really is the incoming server name (there's Outlook, Outlook for Office 365, Business accts, etc etc). DDumas said he used TLS, but mine didn't work until SSL.
Eventually I was hitting the server.
One big difference is the 'recovery' I mentioned before:
Aware reads an email from Outlook - Outlook marks it read.
Aware has a Rules error and doesn't create the db record.
Email "might" be lost. (It might still be on server - its the POP vs IMAP thing).
In my case the 2 test emails were still there, but had been marked read.
Changing them to UNREAD didn't make them get loaded by Aware.
Not until a new email did Aware see it. So there's a diff. between Unread and New.
And if something happens and your users say they haven't gotten emails all day, and something was crapping out in a rule processing the email, then you're gonna have a tough time getting all those emails in - even though they are still on the server - maybe there's a way to do it, dunno.
I'll leave it running for a while and keep sending emails to see if I can break it. I DO NOT have any Scheduler code to DISC/RECONNECT.