this is the code for the form
<form method=post action=authpage.php name=registerform onsubmit="return validate_register ( );"> <table class="m1_text"> <tr><td align=right>RefNo:</td><td><input type=text name=refno></td></tr> <tr><td align=right>Email:</td><td><input type=text name=email1></td></tr> <tr><td align=right>Email Again:</td><td><input type=text name=email2></td></tr> <tr><td></td><td align=center><input class="s_text" type=submit value=Register></td></tr> </form>
this is the code for the mail function
$recipient = $email;
$subject = "Mywebsite Registration";
$body = "Thank You for you're claim with my website\n\n";
$body .= "You're Password is: ".$password."\n";
$body .= "Thank you for registering\n";
$body .= "To Login Please Visit http://www.mywebsite.co.uk/login.php";
$from = "From: noreply@mywebsite.co.uk";
if(mail($recipient,$subject,$body,$from))
{
echo "We have sent you a temporary password";
?><br>Please Check your e-mail<br>
<a href="login.php">Login</a><?php
}else{
echo "We havent sent you a temporary password";
}
The variables are posting correctly from the form and the mail function sends to emails such as yahoo.co.uk and gmail.com but not to pop3 based addresses
This post has been edited by macbot: 09 September 2009 - 10:44 AM

New Topic/Question
Reply




MultiQuote




|