Solved

Need TIdMessageBuilderHtml (INDY)

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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