Error in code? or crappy host?

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

Post Reply
nick_101
Forum Newbie
Posts: 3
Joined: Thu Feb 06, 2003 10:00 am

Error in code? or crappy host?

Post by nick_101 »

ok ive got this SIMPLE mailing script, and i know this host processes php but im wondering if this script is messed up or if its the host that doesnt wana send it

<?php
$to = "my_adress@yahoo.ca" ;
if ($user=="")
{
print ("<font size='6'><center>Please specify a <u>Username.</center></u></font>");
}
else
{
mail($to,$user,$pass);
print ("<center><br><br>Thank you $user.Youre request should be processed within the next 24 hours");
}
?>


it just doesnt wana send it to my e-mail adress... i have tried at yahoo and hotmail still no luck... can anyone help? and if it is my host... anyone know a good free host that does process this?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

<center><br><br>Thank you $user.Youre request should be processed within the next 24 hours
but this is printed?
Post Reply