PolicyPak: How to get mailto: to open in Office 365

Use PolicyPak File Associations Manager to use OWA URL links to compose message directly in Office 365. When done OWA will be the default handler for the mailto protocol in Windows, so that clicking an email address will open the OWA “Compose message” window. Hope this helps you out.


@echo off
set address=%1
set address=%address:~7%
rundll32 URL.DLL,FileProtocolHandler "https://outlook.office.com/?path=/mail/action/compose&to=%address%"