TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Site & Server Administration > Web Hosting
Web Hosting For everything regarding web hosting and web hosting companies. Hosting offers may ONLY be listed in the Advertising sub-category

Reply
 
Thread Tools Display Modes
Old April 21st, 2010, 03:58 PM   #1 (permalink)
Dillon
Guest
 
Posts: n/a
Default Why doesnt PHP email forms work with Yahoo Web Hosting?

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 me@mydomain.com 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 = 'me@mydomain.com';

/*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";
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=9121
$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.
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
email, forms, hosting, php, web, work, yahoo


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 and Yahoo as default email? Shirley T Windows 7 0 April 11th, 2010 05:32 AM
php registration email varification? Angie D PHP 0 April 4th, 2010 09:51 AM
how to do email system in php with localhost server? Jun PHP 1 April 4th, 2010 03:27 AM
Yahoo! Messenger 10.0.0.1258 News Bot News 0 March 24th, 2010 12:16 PM
Yahoo! Messenger 10.0.0.1241 amitash News 0 March 2nd, 2010 08:53 PM

 
Forum Stats
Members: 14,375
Threads: 20,384
Posts: 27,874
Total Online: 44

Newest Member: AAccedlyGolo

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 09:10 PM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO