Send Email via Exchange Online with OAuth2 in Delphi and Free Pascal

Disclaimer: I no longer have access to an Office 365 Exchange Online environment, so I can’t re-verify some of the technical details in this post, especially the Exchange configuration steps. Microsoft’s portals, permissions and policies change over time, so please check them against Microsoft’s current documentation. The code and instructions are provided as-is, without any … Continue reading Send Email via Exchange Online with OAuth2 in Delphi and Free Pascal

Daraja Demo 13: Sign in with Microsoft Entra and call the Graph API from Object Pascal

Can a small Object Pascal HTTP server handle a modern OAuth 2.0 login and then talk to Microsoft's cloud APIs? With the Daraja HTTP Framework, yes. Demo 13 shows the complete flow in a handful of source files. You can find it here: demo/13_entra_msgraph (see the readme.md for the full description). What the demo does … Continue reading Daraja Demo 13: Sign in with Microsoft Entra and call the Graph API from Object Pascal

How To: Secure Delphi SMTP With OAuth2

How to: secure Delphi SMTP with OAuth2 for sending emails via Exchange Online. Full Example source code is available now on GitHub.