call the default email program lazarus / 13-General ---------------------------------------------------------------------- franxys · 2007-11-10 10:23 Hi, Im writing an application in which I need to invoke the default email client by clicking on a TButton. Under win32 I solved the problem with "shellexecute". What I have to do under linux? (I'm working with openSuse 10.2 and KDE). Thanks in advance for your help. ---------------------------------------------------------------------- antonio · 2007-11-10 11:21 Use TProcess, http://wiki.lazarus.freepascal.org/Executing_External_Programs . ---------------------------------------------------------------------- franxys · 2007-11-10 17:47 Quote from: "antonio"Use TProcess, http://wiki.lazarus.freepascal.org/Executing_External_Programs . Many thanks Antonio for your useful reply. But I've another question: is there a way to obtain the same effect when I don't know the default email client installed in the machine where runs my application? ---------------------------------------------------------------------- antonio · 2007-11-10 17:59 On Windows it is easier, you can use ShellExecute like this: Code: [Select] {$ifdef WINDOWS}      UseShellExecute;   {$ELSE}      UseTProcess;   {$ENDIF} ---------------------------------------------------------------------- Almindor · 2007-11-13 20:01 SysUtils.ExecuteProcess() is best and crossplatform without the need for arbitrary code