This will likely not be possible with Azure due to the outbound SMTP restrictions on most subscriptions in Azure, I would use the web client if possible.
If you want to give this a shot, you will need to make sure the needed ports are open on both the OS, and the Azure NSG. Due to the block within Azure, your best bet will be a different direction.