Solved

Need TIdMessageBuilderHtml (INDY)

Posted on 2011-09-08
4
1,554 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

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month6 days, 3 hours left to enroll

626 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