Why doesnt PHP email forms work with Yahoo Web Hosting?

Dillon

New member
I have NEVER been able to get an email form to work using a PHP action with Yahoo Webhosting.
The email never comes to my inbox.

I went into PHP settings and entered [email protected] as the default to where it will "send all emails", and when u hit submit, the new page displays and redirects back to home page fine.... but still never a single email arrives.

What ridiculous trick/loophole needs to be used to get this to work with yahoo webhosting (and no I will not use the joke of a program "sitebuilder" haha)


HERE IS MY CODE....

<?php

/*Email Variables*/

$emailSubject = 'form';
$webMaster = '[email protected]';

/*Data Variables*/

$email = $_POST['email'];
$name = $_POST['name'];
$comments = $_POST['comments'];

$body = <<<EOD
<br><hr><br>
Name: $name<br>
Email: $email<br>
Comments: $comments<br>
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail ($webMaster, $emailSubject, $body, $headers);

/*Results Rendered As HTML*/

$theResults = <<<EOD
<html>
<head>
<title>Message Sent</title>
<meta http-equiv="refresh" content="3;URL=http://www.boomer-t.com">
<style type="text/css">
<!--
body{
background-color: #000055;
color: #FFC211;
font-size: 30px;
padding-top: 200px;
margin-left: auto;
margin-right: auto;
width: 700px;
}
-->
</style>
</head>
<div align="center">Your message has been sent.<br>You will be redirected back to our home shortly.</div>
</body>
</html>

EOD;
echo "$theResults";
?>


Thanks in advance
It is supposed to be possible and I completed the "PHP/PERL Setup" which is simply entering the email you want.
 
Back
Top