hola chicos como estan quisiera a alguien que me pueda orientarme, estoy al frente de un formulario de contactos en flash y un archivo php pero cuando intento mandar un mensaje y voi al correo no me llega nada les podre los dos codigos haver si me dicen q estoy asiendo mal
gracias de ante mano
Este es el codigo PHP
Código PHP:
<?php
//Type the receiever's e-mail address
$emailAddress = "[email protected]";
//Type your Site Name
$siteName = "LyR Studios";
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];
if( $contact_name == true ) {
$sender = $contact_email;
$receiver = $emailAddress;
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "The Name Of The Sender: $contact_name \nEmail: $sender \n\nSubject: $contact_subject
\n\nMessage: \n\n$contact_message \n\nIP ADDRESS: $client_ip \n\n$siteName";
$emailAutoReply = "Hi $contact_name, \n\nWe have just received your E-Mail. We will get
in touch in a few days. Thank you! \n\n$siteName ";
$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
$autoReply = "From: $receiver\r\n" . "Reply-To: $receiver \r\n" . "X-Mailer: PHP/" . phpversion();
mail( $sender, "Auto Reply: $contact_subject", $emailAutoReply, $autoReply );
if( mail( $receiver, "New E-Mail - $contact_subject", $email_body, $extra ) ) {
echo "success=yes";
} else {
echo "success=no";
}
}
?>
Este es el Codigo del flash as 2.0
Código actionscript:
Ver originalfunction clearField()
{
txtField1.text = label1;
txtField2.text = label2;
txtField3.text = label3;
txtField4.text = label4;
} // End of the function
label1 = "Your Name:";
label2 = "Telephone:";
label3 = "E-mail Address:";
label4 = "Message:";
countField = 4;
clearField();
var arrayLabel = new Array();
for (i = 1; i < countField + 1; i++)
{
txtField = this["txtField" + i];
txtField.index = i;
arrayLabel[i] = this["label" + i];
txtField.tabIndex = i;
txtField.onSetFocus = function ()
{
if (this.text == arrayLabel[this.index])
{
this.text = "";
} // end if
};
txtField.onKillFocus = function ()
{
if (this.text == "")
{
this.text = arrayLabel[this.index];
} // end if
};
} // end of for
btnClear.onRollOver = function ()
{
this.gotoAndPlay("over");
};
btnClear.onRollOut = btnClear.onReleaseOutside = function ()
{
this.gotoAndPlay("out");
};
btnClear.onRelease = function ()
{
clearField();
};
btnSubmit.onRollOver = function ()
{
this.gotoAndPlay("over");
};
btnSubmit.onRollOut = btnSubmit.onReleaseOutside = function ()
{
this.gotoAndPlay("out");
};
btnSubmit.onRelease = function ()
{
if (_root.page4.contactform.txtField1.text == label1 || _root.page4.contactform.txtField2.text == label2 || _root.page4.contactform.txtField3.text == label3 || _root.page4.contactform.txtField4.text == label4)
{
gotoAndStop(3);
}
else
{
_root.page4.contactform.loadVariables("email.php", "POST");
gotoAndStop(2);
} // end else if
};
stop ();