Solved

Email Client example for D5 & Indy9

Posted on 2006-10-23
3
300 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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