Skip to Main Content
Feature Request FR-4524
Status CLOSED

7 Voters

Add OAuth 2.0 Support for Email in Oracle APEX Instance email Settings

badanikareem Public
· Jun 24 2025

Idea Summary
To align with modern security standards and upcoming changes by major email providers, Oracle APEX should support OAuth 2.0 authenticatio for sending emails via SMTP in Instance Settings. This will enable secure email delivery using providers that are phasing out basic authentication, such as Office 365.

Use Case
APEX applications often rely on outbound email for user notifications, approvals, and system alerts. Currently, these emails are sent using SMTP with basic authentication (username and password), which is increasingly being deprecated across the industry.

For example:

  • Microsoft is retiring Basic Auth for SMTP in Exchange Online (O365) by September 2025, requiring OAuth 2.0 instead.
  • Other providers like Google Workspace have already enforced similar changes.

Organizations using such providers will face disruptions if APEX does not support OAuth 2.0 natively for email configuration.

Preferred Solution (Optional)

Enhance Oracle APEX Instance Settings to include support for OAuth 2.0 authentication in email configuration inside Instanc Setting.

We reviewed this idea carefully, and while it was interesting, we concluded that it is unlikely to make its way into APEX in the foreseeable future.

Comments

Comments

  • sikandar.awan OP 10 months ago

    It need to be considered as if Microsoft will stop Basic Auth then many companies will suffer. Thanks

  • carsten.czarski APEX Team OP 10 months ago

    Under the covers, APEX uses UTL_SMTP PLSQL API to interact with mail servers. UTL_SMTP currently does not support OAuth-based authentication (SASL XOAUTH2). APEX would first need an enhancement in UTL_SMTP (Oracle Database), then such  functionality can be hooked up in APEX.

  • yves.chassein OP 4 months ago

    As Microsoft Said the will should off Basic with in March,is there a Solution with Apex Technology?

    Regards

    Yves

  • carsten.czarski APEX Team OP 4 months ago

    APEX relies on Oracle Database UTL_SMTP package, which (as stated above) does not support OAuth2 authentication. So, right now, “external” solutions like the abovementioned node.js example will have to be used.

  • bowles.stuart OP 10 hours ago

    hi Microsoft has now turned off basic authentication.

    im struggling to get utl_smtp with oauth2 to work, either from plsql or using apex_mail

    has anyone got any potential solutions?