Autor Beitrag
Vegeto
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 262



BeitragVerfasst: Mi 07.08.13 08:37 
Hallo,

ich habe mal eine allgemeine frage.
Wenn ich in meiner Anwendung diesen Code benutze: Process.Start("mailto:to@email.de.de?subject=Betreff&body=Nachricht"); öffnet die Anwendung das Standart-E-Mail programm und füllt deren Felder.

Doch was passiert wenn der Benutzer kein Mail-Programm auf seinem Computer installiert hat?
Kommt dann eine Fehlermeldung?

Lg

Moderiert von user profile iconTh69: Titel geändert.
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4799
Erhaltene Danke: 1059

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mi 07.08.13 09:15 
Hallo,

das kannst du selber einfach ausprobieren, indem du den Registry-Key dafür (temporär) löschst bzw. umbenennst, s. Change the Default Mail Client (All Windows):
Zitat:
Registry Settings

System Key: [HKEY_CLASSES_ROOT\mailto\shell\open\command]
Value Name: (Default)
Data Type: REG_SZ (String Value)
Value Data: Mail program command-line


P.S. Das Programm dafür heißt "regedit".
Vegeto Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 262



BeitragVerfasst: Mi 07.08.13 13:29 
Ohh Okay probiere ich sofort aus, wenn ich zuhause bin, habe hier keine Admin rechte :)

Lg