Article View: borland.public.cppbuilder.internet.socket
Article #2956Re: How to receive emial on IdPOP3Server
From: Remy Lebeau (TeamB)
Date: Thu, 29 Dec 2005 18:42
Date: Thu, 29 Dec 2005 18:42
32 lines
2025 bytes
2025 bytes
"viv" <getvivek_2000@yahoo.co.in> wrote in message
news:43b3a884@newsgroups.borland.com...
> I want to know how to receive email on IdPOP3Server.
The POP3 server is not for receiving email from clients. It is for sending
email to clients. If you want to receive email from clients, you need to
use TIdSMTPServer instead.
If, on the other hand, you are actually asking how to make TIdPOP3Server
send email to clients, then you need to use the OnRetr event. It is your
own responsibility to store the message contents somewhere and to keep track
of message numbers. When the event gives you a number, you have to send the
contents of the appropriate message to the client, via the
ASender.Thread.Connection object.
void __fastcall TForm1::IdPOP3Server1Retr(TIdCommand *ASender, int
AMessageNum)
{
// load the message data for AMessageNum...
ASender->Thread->Connection->WriteLn("+OK Message follows");
// send the message data ...
ASender->Thread->Connection->WriteLn(".");
}
> Please also suggest the documentation/Demos links on IdPOP3server.
There is documentation on Indy's website.
Gambit
Technical Details
Message-ID:
<43b42d78$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<43b3a884@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,572d2877e7675ffe 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: <43b3a884@newsgroups.borland.com> Subject: Re: How to receive emial on IdPOP3Server Date: Thu, 29 Dec 2005 10:42:08 -0800 Lines: 34 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: <43b42d78$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135881592 68.69.17.41 (29 Dec 2005 10:39:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail