Solved

Email Client example for D5 & Indy9

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

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…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

770 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