Click to See Complete Forum and Search --> : phpMail in Yahoo! with Flash


glitchgirl
06-22-2006, 01:05 PM
Alright if you would like visit this site in progress that I'm creating for my boyfriend and go to the CONTACT to view exactly what I'm talking about at http://rr.jswick.com (http://rr.jswick.com). I need to figure out how to edit my php file to work with a Yahoo! domain.

Here's what Yahoo! wants in a form in order to submit (this is html)
<form method=post action="http://us.1.p7.webhosting.yahoo.com/forms?login=jswick2">

Now to edit my website, I use a notepad file through resourcing and all that, and the line that points to my email says this


&contact_email=jswick2@yahoo.com

which I'm pretty sure is pointing to my phpMail.php file which holds this code

<?php

$msg = "Name : ".$_POST['name']."\n\nEmail : ".$_POST['email']." \n\n ".$_POST['message'];
$mailheaders = "From: ".$_POST['email']."\r\nX-Mailer: php";
$subject="Website Message";
mail($_POST['recipient'], "$subject", "$msg", "$mailheaders");
echo "&status1=Message Sent. Thank you.";
?>

So how using the Yahoo! wanted version, would I allow this to work on my website through PHP. And yes I have contacted Yahoo! but I haven't heard a reply in weeks.

Thanks in advance,
Jesika

shane.carr
06-24-2006, 02:44 AM
In your php, to debug, replace

echo "&status1=Message Sent. Thank you."

with

echo "&status1=Email: "._POST['recipient']

and see what happens. If your email address appears then the problem is in the php, otherwise, the problem is in either the swf or the resource file.