PDA

View Full Version : Email script not working



djexelta
04 Nov 2006, 05:48 AM
Hi,

I recently had someone do me a simple email script for my new website's splash page.

For some reason I don't seem to be receiving the emails from users.

Could somewone please take a look at it and let me know what the problem is as I have no idea about PHP coding.

Any help will be greatly appreciated.

Thanks.


Here is the index code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Breakout Music Network - Coming Soon!</title>
<META HTTP-EQUIV=Refresh CONTENT="4; URL=index.php">
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrapper">
<div id="top"></div>
<div id="thankyou-text"></div>
</div>
<?php

$email = htmlentities ($_POST['email']);

?>
<?php


mail("info@breakoutmusic.net", "Breakout Music Website Request", "Someone has submitted their email to request further information :\n
-----------------------------------------

Email: $email
______________________________________________________________
Breakout Music
www.breakoutmusic.net", "From: Breakout <info@breakoutmusic.net>");

?>

</body>
</html>



Here is the thankyou page code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Break Out Music Network - Coming Soon!</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrapper">
<div id="top"></div>
<div id="text"></div>
<div id="container">
<div id="email">
<form name="breakout" method="post" action="thankyou.php">
<input class="box" type="text" name="email" />
<input name="submit" type="image" class="button" id="submit" src="images/submit-button.jpg" alt="Subscribe" />
</form>
</div>
</div>
</div>

</body>
</html>