Sending email through the outlook app of the user, not the server

Hello everyone,
i am trying to build an application that on a click of a button opens the outlook application of the user and sends an email with attachments etc etc. When i run this app on my pc, everything works fine, when i put it on the server machine and access the app through that, i get an error suggesting that outlook is not installed. So i believe the app is trying to open outlook from the server machine, not the user.
Is there a way to solve this?

Thank you in advance!

You could probably try one of the following:

  1. Load outlook on the server and send an email through that account, just as you are doing from a local machine.
  2. Use mail protocol to send an email through Gmail (where you will have an account for this purpose)
  3. Have an internal email server accessible to the server (where your application is stored) that you can send your email from.