Re: E-mail HTML-file (in body) with images

Giganews Newsgroups
Subject: Re: E-mail HTML-file (in body) with images
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Wed, 23 Jan 2008

"Stef Merlijn" <merlijn-…@hccnet.nl> wrote in message
news:A3980B6ED245E340merlijn-…@hccnet.nl...

> What I would like to know is how I can add the HTML-file in the
> body of an E-mail including the images and send it.

Have a look at the following articles:

    HTML Messages
  http://www.indyproject.org/Sockets/Blogs/RLebeau/2005_08_17_A.EN.aspx

    New HTML Message Builder class
  http://www.indyproject.org/Sockets/Blogs/RLebeau/20080116.EN.aspx

>  // Create temporary file name
>  i := 0;
>  repeat
>    s := Format('%sMessage%d.htm', [EmailDir,i]);
>    inc(i);
>  until not FileExists(s);

Have a look at Indy's GetUniqueFileName() function instead.

Gambit

Replies

In response to

E-mail HTML-file (in body) with images posted by Stef Merlijn on Wed, 23 Jan 2008