<?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 schicken &amp;quot;NMSMTP&amp;quot; mit mehrere Datein?]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich habe kleine Problemm:<br />
Das Code funktionirt wunderbar, aber nur mit eine angehängene Datei.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
 NMSMTP1-&gt;Host = Form1-&gt;Edit1-&gt;Text;
 //NMSMTP1-&gt;UserID =&quot;muster&quot;;
 NMSMTP1-&gt;Connect();
 NMSMTP1-&gt;PostMessageA-&gt;FromAddress =Form1-&gt;Edit2-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;ToAddress-&gt;Text = Form1-&gt;Edit3-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Body-&gt;Text =Form1-&gt;Edit4-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Subject = Form1-&gt;Edit5-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Attachments-&gt;Text =Form1-&gt;Edit6-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Attachments-&gt;Text =&quot;c:\\test1.txt&quot;;// zweite Datei???
 NMSMTP1-&gt;SendMail();
 NMSMTP1-&gt;Disconnect();

}
</code></pre>
<p>wie kann ich z.B. 2 oder mehrere Datein im Anhang schicken?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/172396/e-mail-schicken-quot-nmsmtp-quot-mit-mehrere-datein</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 09:34:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172396.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Feb 2007 18:20:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to E-Mail schicken &amp;quot;NMSMTP&amp;quot; mit mehrere Datein? on Sun, 04 Feb 2007 18:20:20 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich habe kleine Problemm:<br />
Das Code funktionirt wunderbar, aber nur mit eine angehängene Datei.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
 NMSMTP1-&gt;Host = Form1-&gt;Edit1-&gt;Text;
 //NMSMTP1-&gt;UserID =&quot;muster&quot;;
 NMSMTP1-&gt;Connect();
 NMSMTP1-&gt;PostMessageA-&gt;FromAddress =Form1-&gt;Edit2-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;ToAddress-&gt;Text = Form1-&gt;Edit3-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Body-&gt;Text =Form1-&gt;Edit4-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Subject = Form1-&gt;Edit5-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Attachments-&gt;Text =Form1-&gt;Edit6-&gt;Text;
 NMSMTP1-&gt;PostMessageA-&gt;Attachments-&gt;Text =&quot;c:\\test1.txt&quot;;// zweite Datei???
 NMSMTP1-&gt;SendMail();
 NMSMTP1-&gt;Disconnect();

}
</code></pre>
<p>wie kann ich z.B. 2 oder mehrere Datein im Anhang schicken?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222850</guid><dc:creator><![CDATA[wjuri]]></dc:creator><pubDate>Sun, 04 Feb 2007 18:20:20 GMT</pubDate></item><item><title><![CDATA[Reply to E-Mail schicken &amp;quot;NMSMTP&amp;quot; mit mehrere Datein? on Sun, 04 Feb 2007 18:29:02 GMT]]></title><description><![CDATA[<p><em>Attachments</em> ist vom Typ TStringList, und der hat mehr Methoden und Eigenschaften als nur <em>Text</em>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222857</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 04 Feb 2007 18:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to E-Mail schicken &amp;quot;NMSMTP&amp;quot; mit mehrere Datein? on Sun, 04 Feb 2007 19:07:16 GMT]]></title><description><![CDATA[<p>Super Danke!</p>
<p>Ich muss nur Add nehmen.</p>
<pre><code class="language-cpp">NMSMTP1-&gt;PostMessageA-&gt;Attachments-&gt;Add(&quot;c:\\test.txt&quot;);
 NMSMTP1-&gt;PostMessageA-&gt;Attachments-&gt;Add(&quot;c:\\test1.txt&quot;);
</code></pre>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222891</guid><dc:creator><![CDATA[wjuri]]></dc:creator><pubDate>Sun, 04 Feb 2007 19:07:16 GMT</pubDate></item></channel></rss>