3pepe3
02-28-2008, 08:37 PM
Hello world...
I'm very stucked...
I was using a php and flash form to send mails...I was having no problems.
Now I'm trying to use the same and nothing seems to work.
just for test porpouse i'm using this php from this thread (http://www.actionscript.org/forums/showthread.php3?t=131264&page=2)
<?php
echo "sending mail<br>";
$recipients = "prueba_brutal@yahoo.com.mx";
$subject = "Contact Form Message";
$name = "pepe";
$email = "pepe.design@hotmail.com";
$phone = "48-456-789";
$message = "hello world";
$address = "gab kl 256";
$date = date("F j, Y", time());
$email_info .= "Below is the visitors contact info and message.\n\n";
$email_info .= "Visitor's Info:\n";
$email_info .= "-----------------------------------------\n";
$email_info .= "Name: " . $name . "\n";
$email_info .= "Phone: " .$phone . "\n";
$email_info .= "Address: " .$address . "\n";
$email_info .= "Email: " . $email . "\n";
$email_info .= "Date Sent: " . $date . "\n\n";
$email_info .= "Message\n";
$email_info .= "-----------------------------------------\n";
$email_info .= "" . $message . "\n";
$mailheaders .= "From: $name <$email>\n";
$mailheaders .= "Reply-To: " . $email . "\n\n";
echo $recipients."<br>";
echo $subject."<br>";
echo $email_info."<br>";
echo $mailheaders."<br>";
$ok = mail($recipients, $subject, $email_info, $mailheaders); //this line sends the mail and returns true or false
if($ok) {
echo "server_mes=ok";
} else {
echo "server_mes=fail";
}
?>
Also when i check for the $ok it returns true... but not mail received....
What's wrong????
here is the link for test: http://www.pepemagana.com/others/mail.php This is killing me!!!!
Thanks.
Pepe Magaņa
I'm very stucked...
I was using a php and flash form to send mails...I was having no problems.
Now I'm trying to use the same and nothing seems to work.
just for test porpouse i'm using this php from this thread (http://www.actionscript.org/forums/showthread.php3?t=131264&page=2)
<?php
echo "sending mail<br>";
$recipients = "prueba_brutal@yahoo.com.mx";
$subject = "Contact Form Message";
$name = "pepe";
$email = "pepe.design@hotmail.com";
$phone = "48-456-789";
$message = "hello world";
$address = "gab kl 256";
$date = date("F j, Y", time());
$email_info .= "Below is the visitors contact info and message.\n\n";
$email_info .= "Visitor's Info:\n";
$email_info .= "-----------------------------------------\n";
$email_info .= "Name: " . $name . "\n";
$email_info .= "Phone: " .$phone . "\n";
$email_info .= "Address: " .$address . "\n";
$email_info .= "Email: " . $email . "\n";
$email_info .= "Date Sent: " . $date . "\n\n";
$email_info .= "Message\n";
$email_info .= "-----------------------------------------\n";
$email_info .= "" . $message . "\n";
$mailheaders .= "From: $name <$email>\n";
$mailheaders .= "Reply-To: " . $email . "\n\n";
echo $recipients."<br>";
echo $subject."<br>";
echo $email_info."<br>";
echo $mailheaders."<br>";
$ok = mail($recipients, $subject, $email_info, $mailheaders); //this line sends the mail and returns true or false
if($ok) {
echo "server_mes=ok";
} else {
echo "server_mes=fail";
}
?>
Also when i check for the $ok it returns true... but not mail received....
What's wrong????
here is the link for test: http://www.pepemagana.com/others/mail.php This is killing me!!!!
Thanks.
Pepe Magaņa