Reputation: 5454
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 just opens a blank page in the Chrome browser.
var url = "mailto:[email protected]?subject=Test&body=Hello";
System.Diagnostics.Process.Start(url);
I can fix the problem by changing the default mail client from Google Chrome to MS Outlook, but shouldn't Google Chrome automatically open Gmail in this case?
Upvotes: 0
Views: 253
Reputation: 21
try this answer Mailto links do nothing in Chrome but work in Firefox?
var url = "mailto:[email protected]?subject=Test&body=Hello";
System.Diagnostics.Process.Start(@"path\chrome.exe",url);
Google Chrome open Gmail result
Upvotes: 2