lightmode
03-03-2004, 08:03 PM
OK, I have collected a few pieces from here and there and I got this thing working fine on my server however when I posted to the clients server some features work and some don't. My actionscript looks like this on the "submit" button:
on (release) {
if (name_txt.text eq "" or phone_txt.text eq "" or email_txt.text eq "") {
stop();
} else {
lineAdapt();
mailVars = new LoadVars();
mailResults = new LoadVars();
mailResults.onLoad = function() {
if (this.status == "mailSent") {
gotoAndStop("Quick App",2); // Thank You page
} else {
}
};
mailVars.subject = title_txt.text + name_txt.text;
mailVars.message = unescape("Name: " + name_txt.text + " Phone: " + phone_txt.text + "Email: " + email_txt.text + " Flat or Townhouse: " + flat_txt.text + " Group Size: " + group_txt.text + " Questions: " + question_txt.text);
mailVars.from = email_txt.text;
mailVars.sendAndLoad("http://www.irvingcommons.com/mail.php", mailResults, "GET");
}
}
and the PHP file looks like this:
#!/usr/local/bin/php4
<?php
if (isset($_GET['subject'])) $message = $_GET['subject']; // checks if subject was sent in the url via GET.
// if so, it assigns that to our variable $subject
else die('&status=noSubject&'); // if not it stops the script and echos back our status message
if (isset($_GET['message'])) $message = $_GET['message'];
else die('&status=noMessage&'); // same as above
// Will have died or exited out of the script already, if we didn't have our subject and message.
mail("info@myurl.com", $subject, $message, "From: PHPMailer@irvingcommons.com\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
//send information to Irving
mail($from, $subject, $message, "From: info@myurl.com\nReply-To: info@myurl.com\nX-Mailer: PHP/" . phpversion());
//send information of a new kind to Applicant
// send our mail
// change to your info - I changed to fake stuff to prevent spambots spidering this forum from getting your address
echo '&status=mailSent&'; // send back our status so our flash file knows things went okay.
?>
Here is the list of problems:
• Applicant recieves no email
• First line of MaiL() send no Subject _ should pull variables from Flash and doesn't
• Reply-To fills in with PHPMailer not the $from that it should
I am completely perplexed by this, like I said earlier the darn thing worked seemlessly on my hosting server, and when I posted it to the clients IP address,
Blam - - El, Problemo...:eek:
on (release) {
if (name_txt.text eq "" or phone_txt.text eq "" or email_txt.text eq "") {
stop();
} else {
lineAdapt();
mailVars = new LoadVars();
mailResults = new LoadVars();
mailResults.onLoad = function() {
if (this.status == "mailSent") {
gotoAndStop("Quick App",2); // Thank You page
} else {
}
};
mailVars.subject = title_txt.text + name_txt.text;
mailVars.message = unescape("Name: " + name_txt.text + " Phone: " + phone_txt.text + "Email: " + email_txt.text + " Flat or Townhouse: " + flat_txt.text + " Group Size: " + group_txt.text + " Questions: " + question_txt.text);
mailVars.from = email_txt.text;
mailVars.sendAndLoad("http://www.irvingcommons.com/mail.php", mailResults, "GET");
}
}
and the PHP file looks like this:
#!/usr/local/bin/php4
<?php
if (isset($_GET['subject'])) $message = $_GET['subject']; // checks if subject was sent in the url via GET.
// if so, it assigns that to our variable $subject
else die('&status=noSubject&'); // if not it stops the script and echos back our status message
if (isset($_GET['message'])) $message = $_GET['message'];
else die('&status=noMessage&'); // same as above
// Will have died or exited out of the script already, if we didn't have our subject and message.
mail("info@myurl.com", $subject, $message, "From: PHPMailer@irvingcommons.com\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
//send information to Irving
mail($from, $subject, $message, "From: info@myurl.com\nReply-To: info@myurl.com\nX-Mailer: PHP/" . phpversion());
//send information of a new kind to Applicant
// send our mail
// change to your info - I changed to fake stuff to prevent spambots spidering this forum from getting your address
echo '&status=mailSent&'; // send back our status so our flash file knows things went okay.
?>
Here is the list of problems:
• Applicant recieves no email
• First line of MaiL() send no Subject _ should pull variables from Flash and doesn't
• Reply-To fills in with PHPMailer not the $from that it should
I am completely perplexed by this, like I said earlier the darn thing worked seemlessly on my hosting server, and when I posted it to the clients IP address,
Blam - - El, Problemo...:eek: