With the graph endpoint I can get an auth token, but can't authenticate.
I was able to get OAuth2 token and authentication using the older outlook resource details endpoint. With that set up I am able to fetch emails and it generates tickets! But I can't send. SMTP still throws this:
Unable to email via SMTP: ticketing@mydomain.com (smtp.office365.com:587) 5.2.0 STOREDRV.Submission.Exception:InvalidRecipientsException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Recipient ' MyLastName' is not resolved. All recipients must be resolved before a message can be submitted. InvalidRecipientsException: Recipient ' MyLastName' is not resolved. All recipients must be resolved before a message can be submitted.[EndDiagnosticData] [Hostname=xxx.prod.outlook.com]
I'd assume some kind of permission error? Like it can't read and resolve the name?