JavaScript
  Home arrow JavaScript arrow Sending Email with an SMTP Client Built wi...
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? 
JAVASCRIPT

Sending Email with an SMTP Client Built with Prototype and PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-10-02

    Table of Contents:
  • Sending Email with an SMTP Client Built with Prototype and PHP
  • The complete client-side code of the SMTP application
  • Sending email with PHP
  • Full source code of the SMTP client application

  • 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


    Sending Email with an SMTP Client Built with Prototype and PHP


    (Page 1 of 4 )

    If you're a web developer who wants to acquire a solid background in building applications with the popular Prototype JavaScript library, then this set of articles may be what you're looking for. Welcome to the last installment of the series that began with "Building an SMTP Client with Prototype." Made up of three friendly tutorials, this series teaches you how to use this powerful software package to create a highly expansible email application that works with most modern browsers.

    Introduction

    Going back for a moment to the second article of the series, quite possibly you'll recall that building this SMTP client using the functionality provided by Prototype can be tackled with minor problems. Since the library comes packaged with many useful features, like the neat "AJAX.Updater" class and the $ and $F functions, it's possible to create AJAX-based applications, like the one discussed here with extreme ease.

    This fact was clearly demonstrated in the previous tutorial, where I showed you how to turn the corresponding user interface of the SMTP client into a fully-functional front-end by defining a few simple JavaScript functions for sending HTTP requests via the "AJAX.Updater" class and assigning the appropriate behaviors to each form control included in the graphical interface.

    However, even with the SMTP application near completion, you'll certainly remember that there was one missing piece in this schema. So what was it? Well, to be frank, the SMTP client needs to interact with a PHP file on the web server, which is the component that actually sends an email message, using the different parameters entered by the user.

    Therefore, in this final part of the series I'm going to complete this email application by creating a simple yet efficient PHP script, which will be responsible for sending email messages to the recipients specified by the user.

    The experience sounds really instructive and why not, enjoyable too, so let's not waste more time in preliminaries and begin now!

    More JavaScript Articles
    More By Alejandro Gervasio


       · In this concrete article of the series, the PHP script that actually sends email to...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







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