Hallo zusammen,
vielleicht kann mir jemand verraten oder helfen, wie ich die aktuelle Signatur im Outlook heraus finden kann.
Die Signatur selber zu laden und einzubauen, ist kein Problemen. Probleme entstehen nur dann, wenn im Signatur Ordner mehr als eine drinnen ist.
Im Outlook kann man die Option vergeben, welche Signatur bei Neuen Nachrichten und welche bei Antwort/Weiterleitung verwendet werden soll. Diese Information würde ich gerne heraus finden.
Ich habe halb Google abgesucht und auch im MSDNA Objektenbibliothek durch gesucht, jedoch ohne erfolg.
Vielleicht kann mir einer sagen, wo Outlook diese Einstellungen, vielleicht in einem XML Dokument, speichert.
Erster Treffer bei Google Set Default Signature outlook
Inhalt:
Found a way to do this with a registry key. the key is located at HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows messaging Subsystem\Profiles[OutlookProfilename]\9375CFF0413111d3B88A00104B2A6676
in that key there will me mutitple folder 00000001 going up, for each signature one. if you delete someone's windows profile the count starts at 1 again.
in here if you place a REG_Binary named "New Signature" or "Reply-Forward Signature" the value should be the name of the signature in hex format. Say the signatures name is Test it would become
54 65 73 74 in hex. the reg key would like it like this:
54006500730074000000000000000000000000
Dies konnte ich auch nachvollziehen.
- performance is a feature -
Microsoft MVP - @Website - @AzureStuttgart - github.com/BenjaminAbt - Sustainable Code
Ha! Da war ich auch schon, jedoch war es ein Schuss ins Leere 8)
Kommando zurück und durch die Nase atmen 😁
Die Lösung sieht so aus:
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.EmailOptions emailOptions = wordApp.EmailOptions;
Microsoft.Office.Interop.Word.EmailSignature emailSignature = emailOptions.EmailSignature;
Die Lösung fand ich nach 1001 Seite hier
Nur komisch, dass mein Objektkatalog nichts mit
EmailSignature
fand, obwohl ich alle Bibliotheken angegeben habe.