Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages
Started by David Ayre
Mon, 21 Aug 2006 18:24
How to add CC e-mail addresses
Author: David Ayre
Date: Mon, 21 Aug 2006 18:24
Date: Mon, 21 Aug 2006 18:24
11 lines
1138 bytes
1138 bytes
Hi, I am progressing well with the Indy 9 SMTP component, however, I now want to be able to add more recipient and CC addresses. I have tried to work it out but haven't quite got there. Could someone please tell me how to do this. Thanks, David
Re: How to add CC e-mail addresses
Author: Remy Lebeau (TeamB)
Date: Tue, 22 Aug 2006 17:29
Date: Tue, 22 Aug 2006 17:29
11 lines
1169 bytes
1169 bytes
"David Ayre" <davidcayre@ntlworld.com> wrote in message news:44e9fa7a$1@newsgroups.borland.com... > I now want to be able to add more recipient and CC addresses. TIdMessage has CcList and BccList properties for that. And the Recipients property can hold multiple addresses as well. Gambit
Re: How to add CC e-mail addresses
Author: David Ayre
Date: Wed, 23 Aug 2006 07:45
Date: Wed, 23 Aug 2006 07:45
27 lines
1639 bytes
1639 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"David Ayre" <davidcayre@ntlworld.com> wrote in message >news:44e9fa7a$1@newsgroups.borland.com... > >> I now want to be able to add more recipient and CC addresses. > >TIdMessage has CcList and BccList properties for that. And the Recipients >property can hold multiple addresses as well. > >Gambit > Thanks Remy, I had found those but wasn't sure how to use them. 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? It seems to work. Cheers, David
Re: How to add CC e-mail addresses
Author: 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
Re: How to add CC e-mail addresses
Author: David Ayre
Date: Wed, 23 Aug 2006 09:27
Date: Wed, 23 Aug 2006 09:27
23 lines
1618 bytes
1618 bytes
>Did you read the Indy documentation yet? > I have searched through the Indy Help files but found it very difficult to understand how to use the properties and methods. Your examples make it instantly clear. Thanks, David >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 > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads