Article View: borland.public.cppbuilder.internet.socket
Article #2028Re: How to add CC e-mail addresses
From: Remy Lebeau (TeamB)
Date: Wed, 23 Aug 2006 08:42
Date: Wed, 23 Aug 2006 08:42
26 lines
1776 bytes
1776 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote in message
news:44ec0797$1@newsgroups.borland.com...
> I had found those but wasn't sure how to use them.
Did you read the Indy documentation yet?
> I have done this :-
>
> IdMessage1->Recipients->EMailAddresses = Edit3->Text;
> IdMessage1->CCList->EMailAddresses = Edit5->Text;
>
> and if I want more than one address I separate them
> with a comma. Is this correct?
That is one way to do it. Also keep in mind that those properties are
TIdEmailAddressList collections, so you can alternatively Add() items
individually as well, ie:
IdMessage1->Recipients->Add()->Address = "joe@smoe.com";
IdMessage1->Recipients->Add()->Address = "joe@black.com";
IdMessage1->CcList->Add()->Address = "billy@bob.com";
Gambit
Technical Details
Message-ID:
<44ec156c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44e9fa7a$1@newsgroups.borland.com> <44eb3f3e$2@newsgroups.borland.com> <44ec0797$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,537a592599cea290 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: <44e9fa7a$1@newsgroups.borland.com> <44eb3f3e$2@newsgroups.borland.com> <44ec0797$1@newsgroups.borland.com> Subject: Re: How to add CC e-mail addresses Date: Wed, 23 Aug 2006 01:42:50 -0700 Lines: 28 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: <44ec156c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1156322668 68.69.17.41 (23 Aug 2006 01:44:28 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail