topical media & game development
professional-ajax-09-AjaxMail-AjaxMailSend.php / php
<?php
require_once("inc/config.inc.php");
require_once("inc/phpmailer/class.phpmailer.php");
require_once("inc/phpmailer/class.smtp.php");
require_once("inc/JSON.php");
require_once("inc/AjaxMail.inc.php");
//headers
header("Content-Type: text/plain");
header("Cache-control: No-Cache");
header("Pragma: No-Cache");
//get information
_POST["txtTo"];
_POST["txtCC"];
_POST["txtSubject"];
_POST["txtMessage"];
//create new mailbox
oJSON = new JSON();
//send the mail
mailbox->sendMail(subject, cc);
oJSON->encode(output;
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.