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 2 of 4 Topic 167 of 175
Post > Topic >>

Re: retrieving mail

by Jamie <jamie_5_not_valid_after_5_Please@[EMAIL PROTECTED] > Oct 10, 2005 at 09:11 PM

Jeff wrote:
> I am trying to make a console program that will retrieve mail from a
POP3
> server in Delphi 6.  The program will get all the necessary paramaters
(user
> name, password, etc.) in the command line.
> 
> This is what I've written so far.
> 
> program mailheader;
> 
> {$APPTYPE CONSOLE}
> 
> uses
>   SysUtils, NMPOP3;
> 
> var
>  mailretriever : TNMPOP3;
> 
> begin
>   { TODO -oUser -cConsole Main : Insert code here }
>   mailretriever.UserID := 'ffej2ffej';
>   mailretriever.Password := '****';  (* change this before using it *)
>   mailretriever.Host := 'mail.dslextreme.com';
>   mailretriever.Connect;
> end.
> 
> When I compile it, Delphi says my mailretriever component may not be
> initialized.  When  I step through it, it goes to the first line after
begin
> (mailretriever.UserID := 'ffej2ffej'; and does nothing.  I don't even
know
> if it runs that first line.  No matter what, it keeps going back to that
> first line and won't do anything else.
> 
> 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.
> 
> Thank you for your help
> 
> 
> 
i don't think that is going to work for you.
  the net manager components i do think are ocx type
and thus requires a window..
  your going to need a window to handle the messages.

  at least you will need a message loop..
you may want to try the ICS components instead.
  i do think they create their own window.
  but still, i think a message loop maybe required.



-- 
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
 




 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 Tue Oct 7 7:21:55 CDT 2008.