Solved

Email Client example for D5 & Indy9

Posted on 2006-10-23
3
293 Views
Last Modified: 2010-04-04
Does anyone have example code for an email client (send & receive - with attachments) that will compile in Delphi 5 with Indy 9?  The only example I can find right now purports to be Indy9/10 and D7 and I get loads of errors and unknown properties when I try to bring it up in D5/Indy9.  This is urgent, so I'll give 500 points to anyone who can point me to a project download that will compile without hastle in D5/I9  (must handle attachments)
0
Comment
Question by:DMTrump
  • 3
3 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 17792229
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 17792264
here's a list of errors I get with the indy 9 demo above in my basic delphi 5, indy 9 build
and notes on how I fixed them

Firstly, remove teh "readonly" attribute from the Main.pas file

"can not find MailDemo.res. Recreated" (ignore, this is fine)

"pnlAttachments.DesignSize" (ignore)
"Msg.DeleteTempFiles" (ignore)

replace
"IncludeTrailingPathDelimiter"
with
"IncludeTrailingbackslash"

replace
   "if not DirectoryExists(FAttachPath) then ForceDirectories(FAttachPath);"
with
   "ForceDirectories(FAttachPath);"
and add 'FileCtrl' to the uses clause at the top of the unit

hth, Loki
0
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 500 total points
ID: 17792276
also make sure you open up the "setup.pas" file in delphi and ignore the "DesignSize" error there.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
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…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

11 Experts available now in Live!

Get 1:1 Help Now