Page 1 of 1
mail function
Posted: Thu Feb 24, 2005 9:01 pm
by anthony88guy
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.
Posted: Thu Feb 24, 2005 9:04 pm
by feyd
.....and......?
Posted: Thu Feb 24, 2005 9:05 pm
by anthony88guy
The code gets executed because it displays the email has been sent, but when I check my email I find nothing.
Posted: Thu Feb 24, 2005 9:09 pm
by feyd
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.
Posted: Thu Feb 24, 2005 9:22 pm
by anthony88guy
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.
Posted: Thu Feb 24, 2005 9:40 pm
by feyd
php settings allow the host of it to disable any function they desire.. check the output of phpinfo() to find out.
Posted: Fri Feb 25, 2005 10:30 am
by anthony88guy
sorry, it looks like the server was having trouble i got the emails, couple hours later