Solved

Need TIdMessageBuilderHtml (INDY)

Posted on 2011-09-08
4
1,490 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
  • 4
4 Comments
 
LVL 4

Assisted Solution

by:rotem156
rotem156 earned 500 total points
Comment Utility
You're welcome.
0
 
LVL 4

Assisted Solution

by:rotem156
rotem156 earned 500 total points
Comment Utility
You're welcome.
0
 
LVL 4

Assisted Solution

by:rotem156
rotem156 earned 500 total points
Comment Utility
You're welcome.
0
 
LVL 4

Accepted Solution

by:
rotem156 earned 500 total points
Comment Utility
Create the object like this.

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

Open in new window

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now