HTML
  Home arrow HTML arrow Sending Email with AJAX: Interacting with ...
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 
 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? 
HTML

Sending Email with AJAX: Interacting with the Server
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 11
    2006-01-31

    Table of Contents:
  • Sending Email with AJAX: Interacting with the Server
  • Sending email with PHP: developing a straightforward script
  • Getting the server-side application layer completed: listing the “addcontact.php” PHP file
  • Putting the layers together: listing the application’s source code, first section
  • Listing the application's source code, second section

  • 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!

    Sending Email with AJAX: Interacting with the Server


    (Page 1 of 5 )

    Here we are again. Welcome to the last tutorial of the series “Sending email with AJAX.” As you may have guessed regarding the title, this three-part series explains the development of a fairly simple AJAX-driven email client application, which offers some interesting capabilities for sending email, as well as for displaying and adding contacts, all without the need to involve page reloads.

    Introduction

    Recapping from the previous article, let’s go quickly over the explanation of the source code developed so far. As you’ll hopefully remember, in the second tutorial, I wrote the complete set of JavaScript functions –- called the client-side application layer -- in order to provide the program with the ability to request the PHP responsible for sending email messages, along with reading and writing new data to the XML file that stores contact information.

    Although the number of defined functions that make up this AJAX application is considerable, fortunately their logic is pretty simple to grasp. Taking into account the underlying ease of the application, you can quickly expand its functionality or improve some of the existing features without having to tackle annoying updating and maintenance issues. As for most open source applications, improvements are always welcome.

    Now, returning to this last installment of the series, the next step involved in the creation of the AJAX-based email client rests on writing the corresponding PHP code, which actually takes care of sending email. In order to keep the PHP snippet running fast, all the code I plan to write will be deployed as a procedural script. However, if you’re thinking of including this application as part of a larger web project, you may want to consider developing the server-side code by using an object-oriented approach.

    Right, with the preliminaries out of our way, let’s start developing the corresponding PHP snippet for sending email.

    More HTML Articles
    More By Alejandro Gervasio


       · Having developed the client-side application layer of this AJAX-based email program...
     

    HTML ARTICLES

    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips
    - Color Composition and HTML
    - HTML Fonts, Styles, and Headers


    Iron Speed





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