🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How I can add new attachment to blank message?

#4088
From: Remy Lebeau (TeamB)
Date: Fri, 01 Apr 2005 09:08
16 lines
1602 bytes
"depresz" <depresz@piotrkow.net.pl> wrote in message
news:424d0060$1@newsgroups.borland.com...

> I'm using Indy 10 and I create IdMessage in my form.

To add an attachment, simply create a new instance of either the
TIdAttachmentFile or TIdAttachmentMemory classes.  For example:

    TIdAttachmentFile *attachment = new
TIdAttachmentFile(IdMessage1->MessageParts, "c:\\folder\\file.ext");
    attachment->ContentType = GetMIMETypeFromFile("c:\\folder\\file.ext");
    // set other properties as needed ...


Gambit
Technical Details
Message-ID: <424d0f27$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424bb656@newsgroups.borland.com> <424bc359$1@newsgroups.borland.com> <424bd95a@newsgroups.borland.com> <424c505c$1@newsgroups.borland.com> <424d0060$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dd617ab9ef71c634
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <424bb656@newsgroups.borland.com> <424bc359$1@newsgroups.borland.com> <424bd95a@newsgroups.borland.com> <424c505c$1@newsgroups.borland.com> <424d0060$1@newsgroups.borland.com>
Subject: Re: How I can add new attachment to blank message?
Date: Fri, 1 Apr 2005 01:08:15 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <424d0f27$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112346407 68.69.17.41 (1 Apr 2005 01:06:47 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail