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

, ,

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

, ,

Ok, let’s get straight to the problem … suppose you have an application that operates on some database data, among other tasks, users need to export data from your application and send the data attached to an email address (to you, an error report, for example). For the moment, you are exporting data to an external file, and than Outlook (Express) is being used to send the email.

Let’s see how create a more powerful application by including an option to send email messages, with attachments, directly from your Delphi application.

Go email, go

Read the rest of this entry

, ,