Welcome to the Small Business Ideas Forum! We are a community of over 100,000 small business folks with over 163,000 posts for you to browse. We pride ourselves on being the friendliest forum you will find and we'd love to have you as a member of our community. Please take a moment and register for a free account. If you need any help, please contact Chris Logan.

Small Business Ideas Forum

Small Business Ideas Forum

A friendly place to share small business ideas and knowledge, ask questions, find help and encourage others that are involved in the small business industry. Topics include small business marketing, generating revenue and small business computing.

Go Back   Small Business Ideas Forum > Small Business Computing > Website Development
Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old 4th June 2009, 02:37 AM   #1
alaghusundaram
Member
 

Join Date: Jun 2009
Posts: 1
Default Yahoo Small Business Mail Send Through Php

Hi,
I use php in yahoo small business to send mail . this is my code <html>
<head>

<title>Untitled</title>

</head>
<body>

<?

ini_set("SMTP", "smtp.bizmail.yahoo.com");
$mymail = "[email protected]";
$ename = $_POST['ename'];
$eemail = $_POST['eemail'];
$esubject = $_POST['esubject'];
$emessage = $_POST['emessage'];
$eip = $_POST['eip'];

//Function to check email address
function checkemail($eemail) {
if(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$",$eemail)) {
return true;
}
else {
return false;
}
}

//Mail Processing
if ($_POST['esubmit']) {
//Check for blank fields
if ($ename == "" || $eemail == "" || $esubject == "" || $emessage == "") {
echo "<p>It appears that you left a blank field.<br/> Please make sure you fill everything in.</p>";
}
//Check to see if the email address is valid
else if (checkemail($eemail) == false) {
echo "<p>It appears that you enter an invalid email address.<br/> Please check your email again.</p>";
}
//Send the email if there's no error
else {
$body = "$emessage\n\nName: $ename\nEmail: $eemail\nIp: $eip";
mail($mymail,$esubject,$body,"From: $eemail\n");
echo "<p>Thank you for your email $ename!</p>";
}
}



?>
<div>
<form name="contact" method="post" action="contact.php">
<strong>Name:</strong><br/>
<input type="text" name="ename" size="30"><br/>
<strong>Email:</strong><br/>

<input type="text" name="eemail" size="30"><br/>
<strong>Subject:</strong><br/>
<input type="text" name="esubject" size="30"><br/>
<strong>Message:</strong><br/>

<textarea name="emessage" cols="30" rows="10"></textarea><br/>
<input type="submit" name="esubmit" value="Send Mail" style="cursorointer">
<input type="hidden" name="eip" value="<?php echo $_SERVER["REMOTE_ADDR"]; ?>">
</form>
</div>



</body>
</html>

when execute php it display mail is transfered. if i check email i dont got that mail. What is real problem. Please tell me

alaghusundaram is offline   Reply With Quote
Register or log in to remove this ad.
Old 4th June 2009, 02:32 PM   #2
Logan
Administrator
 

Join Date: Jun 2004
Location: Colorado
Posts: 8,046
Default

I'm not a programmer, but best I can tell I don't see a code issue above. I have hosting that prevents mail from being sent, to combat spam. For instance, I believe with Godaddy hosting you have to use their script or something like that. It may be the case that yahoo will not allow that php function to execute. I would contact host, and see if there are any technical/server side setup issues that would prevent that from running.

If not, then next step ... are you getting an error message?

__________________
Search Engine Guide - Small Business Guide to Search Marketing
Small Business Brief - Small Business Ideas Forum, Articles & News
Logan is offline   Reply With Quote
Old 2nd August 2009, 09:17 PM   #3
kevworks
Member
 

Join Date: Aug 2009
Posts: 3
Default

Hi

Logan is correct, hosts such as godaddy or yahoo do not let users use the php mail() function for spamming reasons. You will need to find a host that will allow such functions.

kevworks is offline   Reply With Quote
Old 19th August 2009, 11:57 PM   #4
debbystewart
Member
 

Join Date: Aug 2009
Posts: 60
Default

There are plenty of web hosting companies that allow sending emails through php. I strongly recommend lunarpages.

debbystewart is offline   Reply With Quote
Old 20th August 2009, 12:22 PM   #5
Collabora
Member
 

Join Date: Aug 2009
Posts: 9
Default

Quote:
Originally Posted by kevworks View Post
Hi

Logan is correct, hosts such as godaddy or yahoo do not let users use the php mail() function for spamming reasons. You will need to find a host that will allow such functions.
Godaddy does allow it ...At Godaddy you just need to modify the php.ini file a little.

Collabora is offline   Reply With Quote
Reply   

Bookmarks


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Business Owners Nightmare Story With Yahoo!! If You Use Yahoo Beware! east2west General Small Business Issues 7 2nd December 2010 07:28 AM
newbie needs help: sole proprietership vs partnership shellies General Small Business Issues 5 12th January 2010 05:03 AM
100 Small Business Audio Podcasts sannwood Small Business Trends Forum 4 24th August 2007 11:25 AM
Trouble with my site on Yahoo Small Business , lack of support coolpostcards General Online Marketing Information 7 12th April 2006 12:50 AM



Thread Tools

Get Updates
RSS Feeds:
RSS Feed for Website Development RSS for this Category Only: Website Development

RSS Feed for Small Business Ideas Forum RSS for Entire Forum
Forum Rules


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
Forum Jump


Small Business Ideas Forum


 
At Your Business - Small Business Directory
Free Business Forms - Prewritten Documents
 
Search Engine Guide
Small business guide to search marketing

 
Small Business Brief
Fetching the Best Small Business Info


Free Links - Free Advertising
Free Guide - Online Directory



Advertise your business here
Contact us for more details!


Semantic Juice
Register now to access free Quick SEO service!


Rocket Lawyer
Sign up for free 7 day trial. Boost your biz!


Buy UPC Codes
Get your products listed online!




All times are GMT -5. The time now is 08:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004 - 2018 - Privacy