# SMTP with Modern Auth

**URL:** <https://community.jenkins.io/t/smtp-with-modern-auth/34878>\
**Category:** Ask a question\
**Created:** [August 7, 2025, 3:18pm UTC](https://community.jenkins.io/t/smtp-with-modern-auth/34878 "2025-08-07T15:18:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratsour](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@ratsour](https://community.jenkins.io/u/ratsour)\
**Post date:** [August 7, 2025, 3:18pm UTC](https://community.jenkins.io/t/smtp-with-modern-auth/34878/1 "2025-08-07T15:18:58Z")

</div>

Hi Jenkins Community,

I’m trying to configure **SMTP in Jenkins using Modern Authentication (OAuth 2.0)** and would appreciate any guidance from those who may have successfully implemented this setup.

**Current Jenkins setup:**

- **Version:** 2.522

- **Installed Plugins:**

I noticed the **OAuth Credentials** plugin is available and installed, but I couldn’t find any clear documentation or examples on how to connect it with SMTP (e.g., Office 365 SMTP with OAuth2).

**Has anyone successfully configured Jenkins email notifications via SMTP using OAuth 2.0?**  
If so:

- What credential type should be used under _Manage Jenkins → Credentials_?

- Is there a way to link OAuth credentials with the Email Extension or Mailer plugin settings?

- Any specific client/application registration configuration that must be done (e.g., in Azure AD)?

Any leads, documentation, or tips will be greatly appreciated.

Thanks in advance!
