Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need TIdMessageBuilderHtml (INDY)

Posted on 2011-09-08
4
Medium Priority
?
1,571 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:Stef Merlijn
  • 4
4 Comments
 
LVL 4

Assisted Solution

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

Assisted Solution

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

Assisted Solution

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

Accepted Solution

by:
rotem156 earned 2000 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

Industry Leaders: 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview

963 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