Reproduce the difference
Send ordinary mail from an external account to the recipient. Then submit a controlled form message to the same address and record the time. If only form messages fail, focus on the site’s mail path before changing live MX.
Check DirectAdmin local delivery
When Microsoft 365 handles the domain’s mail, check DirectAdmin’s Local Mail Server setting with your hosting provider. If local delivery still applies, the web server can attempt delivery to an on-server mailbox rather than Microsoft 365. Only change the setting after confirming the intended mail setup.
Check authoritative DNS
Compare the live MX and Microsoft 365 records with the values for your tenant. At Cloudflare use DNS-only for mail hosts where applicable. Keep website and mail records separate.
Use an authorized sender
Set From to an address authorized to send via your transport and Reply-To to the visitor’s address. Review the WordPress mail or SMTP log and Microsoft 365 message trace. A successful wp_mail call alone does not prove delivery to an inbox.