# Setup SMTP Mail via M365 (smtp.office365.com)

**URL:** <https://community.sonatype.com/t/setup-smtp-mail-via-m365-smtp-office365-com/14977>\
**Category:** Best Practices\
**Created:** [May 19, 2025, 11:42am UTC](https://community.sonatype.com/t/setup-smtp-mail-via-m365-smtp-office365-com/14977 "2025-05-19T11:42:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rol.N](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@rol.N](https://community.sonatype.com/u/rol.N)\
**Post date:** [May 19, 2025, 11:42am UTC](https://community.sonatype.com/t/setup-smtp-mail-via-m365-smtp-office365-com/14977/1 "2025-05-19T11:42:27Z")

</div>

Hi,  
I would like to setup SMTP mail via M365.  
Mail verification does not work.

```auto
Failed to invoke action method: coreui_Email.sendVerification, java-method: org.sonatype.nexus.coreui.EmailComponent.sendVerification
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.office365.com:587

```

This is the error message when I want to send a test message with Nexus Repo.

thx  
Roland

---

_[View the full topic](https://community.sonatype.com/t/setup-smtp-mail-via-m365-smtp-office365-com/14977)._
