Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2882  / 2 Years ago, fri, may 20, 2022, 10:47:35

To run the default web browser or terminal there are commands like x-www-browser and x-terminal-emulator. There are other alternatives for common programs.



Is there a similar command to run the default email client?



As an alternative, is there a way to execute the mailto protocol handler?


More From » bash

 Answers
5

You can open the default email client, but with a new message window open with this commands:



xdg-email


or



xdg-open mailto://


Both support some options to compose the new message or a standard mailto url. xdg-email also supports attachments, cc and bcc fields.



gnome-open mailto://


Will also work, but it's only supported under gnome.


[#40534] Sunday, May 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
allowiel

Total Points: 189
Total Questions: 103
Total Answers: 105

Location: Slovenia
Member since Thu, Mar 18, 2021
3 Years ago
;