0

How can I send an email without attachments using the default email client installed on Windows 10/8/7.

I tried the following code but it is just opening a blank page in the Chrome browser.

    var url = "mailto:someone@somewhere.com?subject=Test&body=Hello";
    System.Diagnostics.Process.Start(url);

I can fix it by changing the Default mail client from Google Chrome to MS Outlook, but shouldn't the Google Chrome smartly open Gmail?

Vahid
  • 4,690
  • 11
  • 61
  • 131

1 Answers1

2

try this answer Mailto links do nothing in Chrome but work in Firefox?

 var url = "mailto:someone@somewhere.com?subject=Test&body=Hello";
 System.Diagnostics.Process.Start(@"path\chrome.exe",url);

Google Chrome open Gmail result

Vahid
  • 4,690
  • 11
  • 61
  • 131