Article View: borland.public.cppbuilder.internet.socket
Article #5490Re: TIdMappedPop3 examples
From: MwnN
Date: Wed, 11 Aug 2004 09:43
Date: Wed, 11 Aug 2004 09:43
49 lines
2566 bytes
2566 bytes
Thanks Gambit,
I wasn't setting the 'VHost' in IdMappedPop31CheckHostPort()
which seemed to be empty all the time. By adding the following
everything works fine now...
void __fastcall TForm1::IdMappedPop31CheckHostPort
(TIdMappedPortThread *AThread, const AnsiString AHostPort,
AnsiString &VHost, AnsiString &VPort)
{
VHost = IdMappedPop31->MappedHost;
}
My next question would be how would I go about accessing the
mail, as in accessing the mail using TIdMessage. Can this be
done or do I have to use something like an TIdServerIntercept
or TIdServerIOHandler in order to get access to that kind of
info.
My Program is basically going to scan the emails body to find
an embedded asset which in turn it will edit and then send the
email on with the new data, if the asset is not found in the
emails body then the email will just get forwarded on without
any editing. The reason why I'd like to use a TIdMessage is
because I will still have access to the headers should I need
it later on.
Thanks again!
MwnN
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"MwnN" <MwnN@localhost.com> wrote in message
>news:4118cff3$1@newsgroups.borland.com...
>
>> Every time I try to use it and try to receive mail in my email
>> client I get an "EIdException with message 'Host is empty'",
>> even though I've set the MappedHost to the remote pop server.
>
>The only way that error can occur is if you did not set the MappedHost
>property at all, or if you are clearing the OutboundClient.Host property in
>the OnConnect event. Those are the only two things that can set the
>outbound Host during connecting.
>
>
>Gambit
Technical Details
Message-ID:
<4119ea2a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4118cff3$1@newsgroups.borland.com> <41190684$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,68d2e5696433a12b X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "MwnN" <MwnN@localhost.com> Sender: "MwnN" <MwnN@localhost.com> Reply-To: "MwnN" <MwnN@localhost.com> Subject: Re: TIdMappedPop3 examples Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 147.252.230.61 References: <4118cff3$1@newsgroups.borland.com> <41190684$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4119ea2a$1@newsgroups.borland.com> Date: 11 Aug 2004 02:43:06 -0700 X-Trace: newsgroups.borland.com 1092217386 207.105.83.66 (11 Aug 2004 02:43:06 -0700) Lines: 49 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail