Solved

Email Client example for D5 & Indy9

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

17 Experts available now in Live!

Get 1:1 Help Now