Sending Email with an SMTP Client Built with Prototype and PHP
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.
Sending Email with an SMTP Client Built with Prototype and PHP - Full source code of the SMTP client application (Page 4 of 4 )
As I promised in the section that you just read, below I listed the full source code corresponding to this Prototype-based SMTP application, so you can copy it and pasted it into your preferred text editor for further modifications and improvements.
Here is the corresponding code listing:
(signature of prototype_mail.htm file)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
As you'll realize, only two files are required to get this SMTP client up and running, asides from the Prototype source files, of course. However, given the decent functionality provided by the application, it's really worthwhile to give it a try.
Final thoughts
During this three-part series, I provided you with a step-by-step guide on how to build an expansible SMTP client, which uses the robust functionality provided by the Prototype JavaScript library to send email messages to different recipients.
Hopefully, after reading this group of articles, you'll have a better idea of how to take advantage of the numerous AJAX capacities that come bundled with this useful software package.
See you in the next web development tutorial!
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.