<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[e-mail starten]]></title><description><![CDATA[<p>Hallo, weiss jemand, wie man aus einem Programm heraus das Standard e-mail Programm starten kann?<br />
Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6311/e-mail-starten</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 10:02:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6311.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Oct 2002 07:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to e-mail starten on Wed, 16 Oct 2002 07:45:00 GMT]]></title><description><![CDATA[<p>Hallo, weiss jemand, wie man aus einem Programm heraus das Standard e-mail Programm starten kann?<br />
Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30615</guid><dc:creator><![CDATA[Reiner]]></dc:creator><pubDate>Wed, 16 Oct 2002 07:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Wed, 16 Oct 2002 10:05:00 GMT]]></title><description><![CDATA[<p>Hmm ich glaube das musst du aus der Registry nehmen....außer<br />
du nimmst einfach.....</p>
<pre><code class="language-cpp">ShellExecute(NULL, &quot;open&quot;, &quot;mailto:&quot;, NULL, NULL, SW_SHOWNORMAL);
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">ShellExecute(NULL, &quot;open&quot;, &quot;mailto:Beispiel@GMX.net&quot;, NULL, NULL, SW_SHOWNORMAL);
</code></pre>
<p>Ich hoffe das hat dir weitergeholfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30616</guid><dc:creator><![CDATA[DeltaPi]]></dc:creator><pubDate>Wed, 16 Oct 2002 10:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Wed, 16 Oct 2002 10:27:00 GMT]]></title><description><![CDATA[<p>Danke für den Hinweis. Leider wird aber nur Outlook geöffnet, mein Standard mail-Client ist aber Netscape. Ich werd mal in der Registry schauen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30617</guid><dc:creator><![CDATA[Reiner]]></dc:creator><pubDate>Wed, 16 Oct 2002 10:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Wed, 16 Oct 2002 14:11:00 GMT]]></title><description><![CDATA[<p>Hallo, habs über die Registry geschafft mit:</p>
<pre><code class="language-cpp">TCHAR key[MAX_PATH + MAX_PATH];
  HINSTANCE result;
  BOOL error = FALSE;

  // get the .htm regkey and lookup: standard e-mail client
  if (GetRegKey(HKEY_CLASSES_ROOT, _T(&quot;.htm&quot;), key) == ERROR_SUCCESS)
  {
    lstrcat(key, _T(&quot;\\shell\\open\\command&quot;));

    if (GetRegKey(HKEY_CLASSES_ROOT,key,key) == ERROR_SUCCESS)
    {
      TCHAR *pos;
      pos = _tcsstr(key, _T(&quot;\&quot;%1\&quot;&quot;));
      if (pos == NULL) {                     // No quotes found
        pos = _tcsstr(key, _T(&quot;%1&quot;));        // Check for %1, without quotes 
        if (pos == NULL)                     // No parameter at all...
          pos = key+lstrlen(key)-1;
        else
          *pos = '\0';                      // Remove the parameter
      }
      else
        *pos = '\0';                        // Remove the parameter

      lstrcat(pos, _T(&quot; &quot;));
      lstrcat(pos, &quot;mailto:mustermann@t-online.de&quot;);

      USES_CONVERSION;
      result = (HINSTANCE) WinExec(T2A(key),showcmd);
      if ((UINT)result &lt;= HINSTANCE_ERROR)
        error = TRUE;
    }
    else
    {
      error = TRUE;
    }
  }
  else
  {
    error = TRUE;
  }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/30618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30618</guid><dc:creator><![CDATA[Reiner]]></dc:creator><pubDate>Wed, 16 Oct 2002 14:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Fri, 20 Jun 2003 18:02:00 GMT]]></title><description><![CDATA[<p>@ Reiner</p>
<p>Ich habe Deinen Code ausprobiert, da bei mir auch der Standard Mail Client geladen werden soll. Es soll automatisch eine Mail erstellt werden mit Empfängeraddresse und eine Datei als Attachement angehangen werden, jedoch noch nicht abgeschickt. Gibt es da eine Standardlösung für jeweils Outlook, Mozilla und Opera ?</p>
<p>Dein Code hat bei mir folgende Fehler gebracht:<br />
F:\PROJEKTE\SCHMIDT\FLparse\FLparseView.cpp(51) : error C2065: 'GetRegKey' : nichtdeklarierter Bezeichner<br />
F:\PROJEKTE\SCHMIDT\FLparse\FLparseView.cpp(72) : error C2065: 'USES_CONVERSION' : nichtdeklarierter Bezeichner<br />
F:\PROJEKTE\SCHMIDT\FLparse\FLparseView.cpp(73) : error C2065: 'T2A' : nichtdeklarierter Bezeichner<br />
F:\PROJEKTE\SCHMIDT\FLparse\FLparseView.cpp(73) : error C2065: 'showcmd' : nichtdeklarierter Bezeichner</p>
<p>Ich habe in der MSDN nachgeschaut. GetRegKey gibt es bei mir als Fkt. überhaupt nicht. Ich benutze VC6++ unter WinXP .</p>
<p>Würde mich sehr über Hilfe freuen.</p>
<p>MfG,<br />
pietux</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30619</guid><dc:creator><![CDATA[pietux]]></dc:creator><pubDate>Fri, 20 Jun 2003 18:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Fri, 20 Jun 2003 20:34:00 GMT]]></title><description><![CDATA[<p>hey, wenn das die fehler von pietux geklärt sind, wär das nicht was für die FAQ? klingt zumindest recht vielversprechend</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30620</guid><dc:creator><![CDATA[Emperor_L0ser]]></dc:creator><pubDate>Fri, 20 Jun 2003 20:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Mon, 23 Jun 2003 15:42:00 GMT]]></title><description><![CDATA[<p>MapiSendMail macht doch alles. Wozu in der Registry suchen und der ganze Mist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30621</guid><dc:creator><![CDATA[Frank ll]]></dc:creator><pubDate>Mon, 23 Jun 2003 15:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to e-mail starten on Tue, 24 Jun 2003 06:18:00 GMT]]></title><description><![CDATA[<p>Hi Pietux,<br />
sorry, ich hatte beim geposteten Code übersehen, dass da auf eine Klasse referenziert ist, die nicht MFC ist. GetRegKey ist Teil von CHyperlink das ich von CodeGuru über den Link<br />
<a href="http://www.codeguru.com/buttonctrl/CButtonST32.html" rel="nofollow">http://www.codeguru.com/buttonctrl/CButtonST32.html</a><br />
geladen habe. Übrigens ein paar sehr schöne Buttons....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30622</guid><dc:creator><![CDATA[Reiner]]></dc:creator><pubDate>Tue, 24 Jun 2003 06:18:00 GMT</pubDate></item></channel></rss>