Re: having trouble setting up phpMailer 5.1
thats meant to be so, mr. xgreenberetx - my AJAX script is in debugging mode so it alerts the source xml and sql queries made. here are the lines that do that, usually they are commented. they are in the alertContents() function in Part 1/6 - containing the first bit of javascript. as i said earlier, the problem is with getting phpmailer 5.1 to work on x10hosting.com, it is not register_globals cos that is off on my side as is it here - yet phpmailer installed successfully on my xampp 1.7.2.
Code:
// this is just after the receipt of the response, wether xml or containing a php error
alert(this.responseText);
// mailer response used to output phpmail successes and failures
if (xmldoc.getElementsByTagName("result")[0]) {
if (xmldoc.getElementsByTagName("result")[0].firstChild) {
var result = xmldoc.getElementsByTagName("result")[0].firstChild.data;
if (trim(result) != "") alert(result);
}
}
// outputs all the mysql queries / failures processed
if (xmldoc.getElementsByTagName("sql")[0]) if (xmldoc.getElementsByTagName("sql")[0].firstChild) var sql = xmldoc.getElementsByTagName("sql")[0].firstChild.data; if (sql != "") alert(sql);
// these are further down in the function, alerting the mailer's response and sql queries made
Edit:
see, the problem that i am having, is that when the form is filled out, and you click submit query, that it doesn't even return a response. it should have used phpmailer and its includes to send a mail to the test supplier in the database that is linked to the service with some or all of the attributes provided by it, after it has been matched.
Last edited by cGamez010; 01-01-2010 at 11:57 AM.
Reason: Automerged Doublepost
Sincerely,
Pierre "Greywacke" du Toit.
Please excuse the extensive posts, I prefer to split the code into includes by category/page, rather than functions.