Building the Behavioral Layer of an SMTP Client with Prototype
Looking for new and productive ways to use the robust features that come packaged with the Prototype JavaScript library? Then look no further, since this set of articles might be what you're searching for.
Building the Behavioral Layer of an SMTP Client with Prototype - Listing the full source code for the SMTP client (Page 4 of 4 )
As I promised at the end of the section that you just read, this final section of the tutorial is entirely dedicated to showing the complete client-side code of this SMTP client application, this time including the group of JavaScript functions that you learned previously.
This being said, here the corresponding code listing. Take a look at it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
All right, now that I have shown you the complete client-side code that belongs to this Prototype-based SMTP client, I believe that you'll easily be able to introduce your own modifications to the source code to adapt the application to your personal requirements.
Final thoughts
In this second installment of the series, I demonstrated how to use the robust capabilities of the Prototype library to develop some useful JavaScript functions for sending email via a PHP file located on the web server. These functions also allowed you to assign specific behaviors to different buttons of the user interface, turning it into a fully-functional front-end.
However, I saved the best for last. In the final part of the series I'm going to show you how to create the PHP script that really sends email according to the parameters supplied by the user. Are you going to miss it? I hope not!
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.