Re: Email Sending - How To



This is pretty easy to do with MAPI add MAPI to your uses clause. Do a
search on www.Tamaracka.com for MapiModule. Loads o good examples of how to
do this.

Note, however, that if you want to send e-mail. It's possible to send
e-mails silently (ie without popping up the New Message dialog) by making
sure the paramaters of the send command do not contain the MAPI_DIALOG flag.
However, I think this doesn't get you over the problem of Outlook security
warnings popping up.

You can use Indy for what you want. It's extremely good, but will require a
bit more effort than MAPI, which will just use your default e-mail agent.

"Patrick" <patrick_dohogne@xxxxxxxxx> wrote in message
news:427211f3@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I need to write a batch app. that will loop thru data, and send email
> messages.
> Something like:
>
> with qryCustomerTable do begin
> First;
> while (not Eof) do begin
> if (qryCustomerTableEmailaddress.Value <> '') then begin
> // send an email message
> end;
> Next;
> end;
> end;
>
> Where to start? Indy? Where are the examples?
>
> Delphi 7 Pro
>
> tia--Patrick
>
>


.