Set Outlook 365 to default mail app

camillo
New Contributor

Does anyone has a way to setup MS Outlook 365 as default mail app?

If you want to setup it manually you have to do it in the Mac mail app, although you never used it.

I have to send out something to the organization with an mailto: link and I do not want all people calling me to ask why Mail is opening instead of Outlook.

Additionally it would be nice to set default programs via config profile in Jamf pro.

Thank you for your help.

5 REPLIES 5

Corey_Nechkash
New Contributor III

Easiest way to achieve this is to use the MailToOutlook application. It was previously hosted on MacAdmins.software but that site is down. Most of the content has been migrated to MOFA (Microsoft Overview Feed for Apple). MOFA 

Here's the page that contains the MailToOutlook v2.1 package (Office-Reset.com_MailToOutlook_2.1.pkg). It should be the first package listed on the page: https://github.com/cocopuff2u/MOFA/tree/main/office_reset_tools/office_reset_archived/packages 

Just push this package install via Jamf and the machines will default to using Outlook instead of the Mail client. I've been using this for about 4 years and have not had any issues. 

mvu
Valued Contributor III

Thank you.

Tribruin
Valued Contributor II

You can also look at using this tool:

New tool updated: utiluti v1.1 – Scripting OS X

karthicksekar25
New Contributor III

Revolution
New Contributor III

Using the SWDA tool that @karthicksekar25 mentioned, try this for a Script to use as a policy.



#!/bin/bash

SWDA="/usr/local/bin/swda"
MAIL="/Applications/Microsoft Outlook.app"


loggedInUser=$( echo "show State:/Users/ConsoleUser" | /usr/sbin/scutil | /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )

loggedInUID=$(/usr/bin/id -u "$loggedInUser" 2>/dev/null)
echo $loggedInUser
echo $loggedInUID

/bin/launchctl asuser "$loggedInUID" SWDA setHandler --app "$MAIL" --mail

/bin/launchctl asuser "$loggedInUID" SWDA setHandler --app "$MAIL" --URL mailto

/bin/launchctl asuser "$loggedInUID" SWDA setHandler --app "$MAIL" --URL message

/bin/launchctl asuser "$loggedInUID" SWDA setHandler --app "$MAIL" --UTI com.apple.mail.email

exit 0