Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 4 - Creating an Email Client with Borland Delp...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Creating an Email Client with Borland Delphi
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 35
    2005-10-18

    Table of Contents:
  • Creating an Email Client with Borland Delphi
  • What you need
  • Coding
  • Improvements/Remarks

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating an Email Client with Borland Delphi - Improvements/Remarks


    (Page 4 of 4 )

    Giving persistence to your server login details: if you have more that one set of login details, you can use either an ini or text file to store your login details and get the application to read them in when it starts up. Alternatively, you can use the registry or a database to store these values if you are concerned about security. If you want to store the messages that you send, to reference later, you might want to create a small database to store them in.

    Address Book: You can create a small Access database to store email addresses and retrieve them as and when necessary.

    Message Sent notification

    You will notice that nothing happens after you've sent a message. It is possible to greatly improve this by adding a progress bar that indicates that the message has been sent. Use IdSMTP's onwork, workbegin and onworkEnd event handlers, together with the progressbar. When the work is finished you could bring up a dialog saying "Message Sent" or something to that effect. This will assure the user that something is happening.

    Possible bugs

    Sometimes when I send messages to email addresses ending in ".co.uk" the application crashes. I've reported this to the Indy group, and hopefully this will be fixed in the near future.

    What Next?

    Although you are now able to send messages, what happens when you want to see what messages have been sent to you, or you want to see whether a message you sent has been received or not? That is what the next installment of this project will focus on. It will use the popular POP3 protocol to download all your messages from your POP3 server and allow you to read, reply to and delete them as you require.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Shh....Delphi makes it easy to create a mail client!! I want to learn how to use...
       · If i do create an MSAccess database to store email addresses in a Text field of the...
       · To use MS Access with Delphi, go to...
       · It's worth noting that Borland includes very capable POP3 and SMTP components....
       · Actually Delphi does not have a naive SMTP/POP3 server or client, it has been...
       · But someone could go out and spend 50 or 60 bucks on the Indy In Depth book, then...
       · I agree, upon discovering Indy components, the first thing i did was to buy a Indy...
     

    DELPHI-KYLIX ARTICLES

    - Loading an XML Document into the DOM
    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek