🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1483

Using Indy components to send email...but want to attach files

#1483
From: dave
Date: Fri, 05 Jan 2007 13:26
19 lines
1387 bytes
I am using Indy components to send emails.  I would like to attach anywhere from 0 to 7 files to these emails.

My current code looks like:

IdSMTP_Release_Notes->Connect();
IdMessage_Release_Notes->From->Text = "ddd@hhhh.net";
IdMessage_Release_Notes->Recipients->EMailAddresses = "test@hhhh.net";
IdMessage_Release_Notes->Body->Text = "Mail BODY Message Here";
IdMessage_Release_Notes->Subject = "Mail subject!!!!";

IdSMTP_Release_Notes->Send(IdMessage_Release_Notes);
IdSMTP_Release_Notes->Disconnect();


What would the code look like if I were to attach several files to this email I am sending out?


---Dave
Technical Details
Message-ID: <459e5222$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,91daf0a133c0a136,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "dave" <dave@hhhh.net>
Sender: "dave" <dave@hhhh.net>
Reply-To: "dave" <dave@hhhh.net>
Subject: Using Indy components to send email...but want to attach files
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 209.113.245.98     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <459e5222$1@newsgroups.borland.com>
Date: 5 Jan 2007 05:26:58 -0800
X-Trace: newsgroups.borland.com 1168003618 207.105.83.66 (5 Jan 2007 05:26:58 -0800)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail