Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Components Usage > Re: retrieving ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 167 of 175
Post > Topic >>

Re: retrieving mail

by Fumio Kawamata <fumio@[EMAIL PROTECTED] > Oct 13, 2005 at 10:56 PM

Jeff wrote:
> I'm wondering about several subjects:
> Is this the proper way to include a TNMPOP3 component in a non-form
> application?
> Should I be calling the TNMPOP3 constructor?  (aka the Create method)?
> If I do call the Create method, what should I put as the owner?  I'm
trying
> to tell it to be owned by the program, but if I say
> mailretriever.Create(mailheader) it has no idea what I mean.

I have written the console program which remove the unexpected
 e-mails from the POP server.  I used IdPOP3 instead of the NMPOP3.
I will show you a part of the source code.

uses
  SysUtils, Cl*****, Windows,
  IdPOP3 in 'c:\indy\protocols\idPOP3.pas',
....

var
  POP3: TIdPOP3;
....

begin
....
  POP3:=TIdPOP3.Create(Nil);
....
  POP3.Free;
....
end.

I hope this will help you.
You can see the project source code (.dpr) at the following url.
http://openlab.jp/fumio/mailutl/src/mailutl.dpr

Regards.

-- 
Fumio KAWAMATA   fumio@[EMAIL PROTECTED]

 




 4 Posts in Topic:
retrieving mail
"Jeff" <ffej  2005-10-10 11:41:25 
Re: retrieving mail
Jamie <jamie_5_not_val  2005-10-10 21:11:34 
Re: retrieving mail
"Bruce Roberts"  2005-10-12 20:18:31 
Re: retrieving mail
Fumio Kawamata <fumio@  2005-10-13 22:56:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 5:05:47 CST 2008.