SunQuest
 
       XML
  Home arrow XML arrow Developing the Server-side Layer of an Ema...
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  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 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? 
XML

Developing the Server-side Layer of an Email Application in AJAX
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2006-04-12

    Table of Contents:
  • Developing the Server-side Layer of an Email Application in AJAX
  • Working with a POP3 server: defining the barebones of the "POP3Processor" class
  • Fetching email messages: defining the signature of the "fetch()" method
  • Assembling the POP3 client: putting client and server-side layers to work together

  • 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
     
    Iron Speed
     
    ADVERTISEMENT

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    Developing the Server-side Layer of an Email Application in AJAX


    (Page 1 of 4 )

    Here you have it. Welcome to the concluding part of the series “Take AJAX to your email inbox.” In three parts, this series shows in a friendly format how to develop a simple web-based POP3 client which uses AJAX as the driving technology for fetching and displaying email messages on a web document.

    Introduction

    Stepping back for a moment to the second installment of the series, you'll probably recall that I focused my efforts on writing the full set of JavaScript functions that make up the POP3 client. Given that, I defined the functions responsible for sending out and handling HTTP requests, in order to retrieve and display email messages on the web page, as well as creating the functions tasked with adding the proper behaviors to each control of the corresponding user interface.

    The end result was a fully-functional client-side application layer. This layer was capable of requesting the PHP file that talks directly to a specified POP3 server and pulls out messages to be displayed within the section of web document destined to that specific purpose. Although the user interface I developed during the previous article exposes the basic controls for visualizing and navigating back and forth across messages, perhaps you may want to add a little bit of your personal touch and create a better one. You can do this either by utilizing my example as the foundation for introducing your own improvements, or by creating a brand new interface, featuring more sophisticated navigational controls, or a truly professional look and feel. As you can see, there's plenty of room to experiment here.

    In either case, in this last tutorial I'll tie the client-side application layer I wrote earlier to the server-side code that connects to the mail server and executes POP 3 commands, in order to retrieve email messages to be listed on the corresponding web page. How will this be done? To achieve this task, I'll develop an easy-to-follow PHP class, which will expose some useful methods for establishing a connection to the POP3 server, together with fetching the email messages in question.

    Having outlined the guidelines for this tutorial, it's time to leap forward to creating the pertinent PHP POP3 processing class. Let's get going!

    More XML Articles
    More By Alejandro Gervasio


       · Over the final installment of this series, the PHP class that talks directly to the...
       · Well written and informative, but it still doesn't work! I copied and pasted the...
       · Thank you for the positive comments on the AJAX-related article I wrote. Regarding...
       · Too bad it still doesn't work for me. Both files are on the same domain, in the same...
       · Hey, thank you for posting your feedback here again. I'm sorry the application is...
       · PHP5 is required.
       · Thank you for posting your feedback here. Yes, you're correct, since the server-side...
       · I have try this application but it did not retrieve any mail message from my inbox....
       · Thank you for commenting on my AJAX article. With reference to your question, you...
       · But when i try using nameko(other application that use php socket),i can retrive the...
       · Can you tell me any mail server that will work with this application?I want to try...
       · Thank you for commenting on my AJAX article again. Unfortunately, I can provide you...
       · I have send you the file..hope you can take a lot and help me on this.By the way I...
       · Thank you for the comments. I alreadly emailed you some source files so you can give...
       · Hai, Any one has idea how to create a web page using strut with ajax.The page...
       · Thank you for commenting on my AJAX article. With reference to your consult, I’ve...
     

    XML ARTICLES

    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE
    - UI Design with Java and XML Toolkits
    - Displaying ADO Retrieved Data with XML Islan...
    - Widget Walkthrough
    - Introduction to Widgets
    - The Why and How of XML Data Islands
    - Creating an XUL App Installer
    - Overlays in XUL
    - Skinning Your Custom XUL Applications


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway