If you have an Office 365 mailbox, you can send using SMTP using a variety of options. Microsoft have created a helpful article here:
https://zx3.freshdesk.com/a/solutions/articles/80000605779
For "unattended" devices, such as printers, you can create up to 40 "app passwords" that allow the device to send email.
Go to https://mysignins.microsoft.com/security-info and "+ Add method" > App password
Provide the app a name, such as "PrinterScannerRoom123", add, and note the generated password:
- App name:
- Password:
The Microsoft article for send email using an "app password" (instead of "in person" authentication) is here: How to set up a multifunction device or application to send email using Microsoft 365 or Office 365 | Microsoft Docs
- SMTP server: smtp.office365.com
- Port: 587
- TLS/StartTLS: Enabled
- Username: Your email address
- Password: The app password you just created
(Each device requires it's own "app password" - digital signature patterns, such as IP/device EHLO/MAC, are used to restrict unattended email sending and thus limit exploits)
If you need further help, we can assist you with bespoke configurations too.