may be first question is what options are possible for you?
even with code also you need something…so based on you having 0365 different auths or smtp you can use them to get the mail if outlook is not installed
else you need to install it
rather it be via code or via activities
cheers