Standard-Email Programm öffnen c# & mailto:

Folgender Code öffnet den “Default-Email-Client”:

System.Diagnostics.Process.Start(
    String.Format("mailto:{0}?subject={1}&body={2}",
        "demo@mail.de",
        "Nachricht von test@test.de", 
        "Hallo %0aNachricht %0aGrußformel"));
 
“%0a” erzeugt einen Zeilenumbruch.
 
6-4-2009 1-01-54 PM 

Attachments werden nicht konsistent interpretiert und sind Email-Client Versions und Patch abhängig. “Attach” wird von Outlook 2007 aus Sicherheitsgründen nicht weiter unterstützt. Werden Attachments verbindlich benötigt ist man mit dem direkten Versand der Email auf der sicheren Seite.

Wenn ihnen der Artikel gefallen hat oder er für sie hilfreich war, bitten "kicken" sie ihn.
kick it on dotnet-kicks.de

Kommentare

Dezember 17. 2009 06:16

Anton

"Attach" wird nur von sehr wenigen E-Mail-Clients unterstützt.

Mit einem MAPI-Wrapper soll es gehen (weblogs.asp.net/.../...efault-e-mail-client.aspx). Aus den Kommentaren ist aber zu lesen, dass es wohl nur lokal funktioniert und nicht als Web Applikation aufm IIS.

Anton

Juli 29. 2010 02:57

guide to getting a good night's sleep

Bear in mind the aged saying regarding heading to mattress and having away from it earlyIJ Nicely the news is that often it nevertheless holds a great deal of water  The difficulty is the fact that the trouble faced in using it's also the similar that the mother and father faced decades ago - to set your  energetic   actually  seeking to play  kid to sle

guide to getting a good night's sleep

Kommentar schreiben


(Zeigt dein Gravatar icon)

  Country flag

biuquote
  • Kommentar
  • Live Vorschau
Loading