<?PHP
if ($submit) {
//Here we add the send mail script
$from="From:$name<$mail>";
$tomail="a7xrjw@hotmail.com";
if (mail($tomail,$subject,$body,$from)) echo "<h1>Thank you</h1> We have succesfully recieved your information, we will get back to you as soon as possible, always within the next 48 hours. If you do not recieve a reply within 48 hours, please use on of the othr methods of contacting me.
<h1>Other forms of Contact</h1>
<strong>Email:</strong> Webmaster@reclusiveart.com <br />
<strong>Email #2:</strong> a7xrjw@hotmail.com.com <br />
<strong>MSN:</strong> a7xrjw@hotmail.com.com <br />";
}else
//We added action=$PHP_SELF
//$PHPSELF means current page
//action normally contains the page to which the variables are sent
echo "<h1>Email Form</h1>
<form method=POST name=form1 action='$PHP_SELF'>
Name:<br /><input id=name name=name type=text><br />
E-Mail:<br /><input id=email name=mail type=text><br />
Subject:<br /><input id=subject name=subject type=text><br />
Detail:<br /><textarea id=detail name=body></textarea><br />
<input type=submit name=submit value=OK>
</form>
<h1>Other forms of Contact</h1>
<strong>Email:</strong> Webmaster@reclusiveart.com <br />
<strong>Email #2:</strong> a7xrjw@hotmail.com.com <br />
<strong>MSN:</strong> a7xrjw@hotmail.com.com <br />";
?>
That's what i have, the weird thing is it works all the time if in email you don't put @wherever.com (when you fill in the form, not where it sends to) but if you put that it doesn't send (I think it has once not sure). Why?
Edited by Aussiestinger, 15 July 2006 - 05:51 PM.
