PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Thu Feb 24, 2005 9:01 pm
Code: Select all
<?
$to = "xxxxxxxxx@optonline.net";
$subject = "KOS Member Application";
$name = $_POSTї'name'];
$age = $_POSTї'age'];
$location = $_POSTї'location'];
$kochistory = $_POSTї'kochistory'];
$uniquelink = $_POSTї'uniquelink'];
$email = $_POSTї'email'];
$requestedemail = $_POSTї'requestedemail'];
$message = "<b>Name:</b> $name<br><b>Age:</b> $age<br><b>Location:</b> $location<br><b>KOC History</b> $kochistory<br><b>Unique Link</b> $uniquelink<br><b>Email:</b> $email<br><b>Requested Email:</b> $requestedemail";
mail($to, $subject , $message);
echo "<strong><font color="#FF0000">Email was Sent</font></strong>";
?>
I am trying to retrieve information from my website and send an email to my self. The website is
http://nokidding.websiteallies.com/appl ... lyform.htm
i've searched the code numerous times and cannot find any errors.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Feb 24, 2005 9:04 pm
.....and......?
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Thu Feb 24, 2005 9:05 pm
The code gets executed because it displays the email has been sent, but when I check my email I find nothing.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Feb 24, 2005 9:09 pm
standard mail() debugging: check the return value of mail(). If it returns success, then you may need headers.. if you can check the email account you are sending through, check for bounces.. if you can send "normal" email to the account you are sending to, then try combinations of the headers sent along with it.
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Thu Feb 24, 2005 9:22 pm
Is it possible for the hosting company to not allow the mail() function? Because a while back I make a comments page, where it sent me a comments via email, and now that doesnt work either.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Feb 24, 2005 9:40 pm
php settings allow the host of it to disable any function they desire.. check the output of phpinfo() to find out.
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Fri Feb 25, 2005 10:30 am
sorry, it looks like the server was having trouble i got the emails, couple hours later