Home arrow HTML arrow Sending Email with AJAX: Interacting with the Server
HTML

Sending Email with AJAX: Interacting with the Server


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.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 23
January 31, 2006
TABLE OF CONTENTS:
  1. · Sending Email with AJAX: Interacting with the Server
  2. · Sending email with PHP: developing a straightforward script
  3. · Getting the server-side application layer completed: listing the “addcontact.php” PHP file
  4. · Putting the layers together: listing the application’s source code, first section
  5. · Listing the application's source code, second section

print this article
SEARCH DEVARTICLES

Sending Email with AJAX: Interacting with the Server
(Page 1 of 5 )

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.


blog comments powered by Disqus
HTML ARTICLES

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials