Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email with PHP

Status
Not open for further replies.

736xl

IS-IT--Management
Sep 14, 2005
89
US
I am having some difficulties getting this to work. I would greatly appreciated some help if anyone could point me what seems to be the problem.

The php code:


<?
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient email'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>

<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>


the flash code submit button:

on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
url_var = "server_option="+_root.server_option+"&recipient="+_root.recipient+"&your_name="+_parent.your_name+"&your_email="+_parent.your_email+"&comments="+_parent.comments;
getURL("contact."+_root.server_option+"?"+url_var, "_blank", "GET");
_parent.your_name = "";
_parent.your_email = "";
_parent.comments = "";
}


I've verified that the web hosting support php. When submitting, i get page cannot be displayed


Help would be greatly appreciated. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top