SafeLink This is just a quick hack to strip off safelinks from Outlook in case you need the raw URL Things that could be done to improve it: Build as a web service Turn into .NET Core and run as a CLI based app (will then run on Mac, Linux)