In this article I will introduce 3 ways to open mail client on windows:

Open a default mail client on windows10

In this article I will introduce 3 ways to open mail client on windows:

  1. mailto:
  2. mapi
  3. regestry

Comparision

  1. mailto is a protocal to open a mail client which is surpported by most clients, but no attachment can be specifed.
  2. MAPI is suited for MicroSoft Office development, so it is good surpported by Micosoft Ofice suites.
  3. registry has the default mail client, so you can use command line options to handle the email.

Code example(with Qt)

source

Reference

mailto wiki

mailto protocal(rfc6068)

MAPI reference

MAPI of outlook

mail regestry