In Outlook for the Web, if you want to email from a shared mailbox it's important that you make the "From" field visible so you can see which email address you are sending from.
1. Click New Message to open a new email
2. Click on the 3 dots at the top of the message and select Show From
3. Click the From button to change the email address you want to send from