Vamos a dividir el proceso de descargar el correo en dos partes. Primero leemos las cabeceras de nuestros mensajes y después descargamos los mensajes que nos interesen. Esto puede ser útil para descartar el correo spam desde el mismo servidor.
Vamos a crear dos componentes de la paleta INDY en tiempo real, con lo cual hay que añadir al comienzo de nuestra unidad:
Read the rest of this entry
email, Indy, pop3
Steps: Overview:
On a form put:
1. POP3 client component (Indy tab palette)
2. IdMessage component (Indy miscellaneous palette)
3. Button component (standard palette)
4. Memo component (standard palette)
5. Double click on the ‘POP3 client’ component and after that the button
component, and copy/paste inside the following text, as further shown below
6. Then change in that source code your POP3 information
IdPOP31.Host := ”; // for example: ‘pop.vip.sc5.yahoo.com’ (if you are using Yahoo)
IdPOP31.Username := ”; // for example: ‘myname’
IdPOP31.Password := ”; // for example: ‘mypassword’
for one or more service providers you want to download from
7. If you then compile this program and click on the button, it will
download e-mail information (e.g. count the total of e-mail
present and get their
header, body, attachment (not implemented further) information)
Read the rest of this entry
email, Indy, pop3