Re: Trying to do email downloads

Giganews Newsgroups
Subject: Re: Trying to do email downloads
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Fri, 14 Nov 2003

"Captain Kirk" <abuse@127.0.0.1> wrote in message
news:316AF8DB7B86E240abuse@127.0.0.1...

>    IdPop31.RetrieveHeader(d);

RetrieveHeader() expects you to pass it a TIdMessage which it will then fill
in with the message header information, ie:

    // assume IdMessage1 is a TIdMesage that is dropped onto the form
    idMessage1.Clear;
    IdPop31.RetrieveHeader(d, idMessage1);

>    ChecklistBox1.Items.Add(); // here I want to add the sender and
subject

Add() expects a string, so you need to give it one, ie:

    ChecklistBox1.Items.Add(IdMessage1.Sender.Text + ': ' +
IdMessage1.Subject);

Gambit

Replies

None

In response to

Trying to do email downloads posted by Captain Kirk on Fri, 14 Nov 2003