Solved

Need TIdMessageBuilderHtml (INDY)

Posted on 2011-09-08
4
1,531 Views
Last Modified: 2016-10-03
Hi,

Can anybody help me with getting INDY component: TIdMessageBuilderHtml
I need to install it in Delphi 2007.

....OR....

How can I replace the code below so it will work with standard components?

Thanks.
with TIdMessageBuilderHtml.Create do
  try
    Subject := IOnderwerp.Text;
    PlainText.Text := 'text';
    Html.LoadFromFile(HTMLBestand);
    for i := 0 to EmailFiles.Count-1 do
    begin
      If (EmailFiles.Strings[i] <> HTMLBestand) then
      begin
        HtmlFiles.Add(EmailFiles.Strings[i]);
      end;
    end;
    for i := 0 to BijlageBestanden.Items.Count -1 do
    begin
      Attachments.Add(BijlageBestanden.Items.Item[i].Caption);
    end;
    FillMessage(MailMessage);
  finally
    Free;
  end;

Open in new window

0
Comment
Question by:Delphiwizard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
4 Comments
 
LVL 4

Assisted Solution

by:rotem156
rotem156 earned 500 total points
ID: 36539197
You're welcome.
0
 
LVL 4

Assisted Solution

by:rotem156
rotem156 earned 500 total points
ID: 36539208
You're welcome.
0
 
LVL 4

Assisted Solution

by:rotem156
rotem156 earned 500 total points
ID: 36542414
You're welcome.
0
 
LVL 4

Accepted Solution

by:
rotem156 earned 500 total points
ID: 36542425
Create the object like this.

IdMessageBuilderHtml := TIdMessageBuilderHtml.Create( Nil );
with IdMessageBuilderHtml do
Begin
  // Code...
End;

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question