Mail: Microsoft 365 sends email and reads the support mailbox through Microsoft Graph when the app on the OAuth tab has Mail.Send or Mail.ReadWrite, so the mailbox needs no SMTP AUTH, and SMTP or IMAP stay in use for whatever it lacks; new functions/mail_graph.php with mailGraphToken caching the Graph token and its scopes and keeping the rotated refresh token, mailGraphSend sending the finished MIME or a draft with uploaded attachments past 3 MB, and functions/mail_graph_mailbox.php standing in for ImapEngine in the email parser; the OAuth tab says which way email goes, Test IMAP and Test OAuth Token Refresh cover Graph, the Exchange token renewals now name their scope, database 3.9.2 adds three settings columns, 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 23:49:02 -05:00
parent 5aa7280c9b
commit a31471eff3
11 changed files with 769 additions and 14 deletions

View File

@@ -97,6 +97,9 @@ mysqli_query($mysqli, "UPDATE settings SET
WHERE company_id = 1
");
// What Microsoft Graph can do is asked afresh with the new sign-in (functions/mail_graph.php)
mailGraphForget();
logAudit("Settings", "Edit", "$session_name connected Microsoft 365 for mail");
flashAlert("Microsoft 365 connected - ITFlow can now use the mailbox");
redirect($settings_mail_path);