HP printers can send direct to SMTP connections.
To configure so it sends thru an Office 365 Exchange online mailbox enter these settings on the webpage
SMTP Server =outlook.office365.com
SMTP Port = 587
Check off "Always use secure connection (SSL/TLS)
Check off "E-mail Log-in Authentication"
User ID = [Your Email address]
Password = [Your Password]
To verify what your full server name is
Login into your exchange webmail at http://portal.microsoftonline.com
Access Outlook webmail
Click on "gear"
Click on Options
Under account information will be a lint for "Settings for POP, IMAP, and SMTP access"
Verify the server listed in the popup.
Using these settings the HP printer can send scan directly to email address on your behalf.
Each time an account password is updated the HP send connection settings will need to be updated to match.