My own code wouldn't work so I modified PlanetSim's code in his tutorial. For some reason the e-mail won't send. Any thoughts?
$to = $_SESSION['email'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: [email]info@oursite.com[/email] \r\n";
$subject = "Thank You, ";
$subject .= $_SESSION['name'];
$subject .= ", for joining the OurSite.com Community.";
$message = "Thank You, ";
$message .= $_SESSION['name'];
$message .= ", for joining the OurSite.com Community.\n";
$message .= "With your membership you will recieve periodic updates on new machines, used machines,";
$message .= " parts, service, tradeshows and other information. As well as access to the membership";
$message .= " information on our website.";
$message .= "\n";
$message .= "Sincerely,\n";
$message .= "The OurSite.com Team\n";
$message .= "info@OurSite.com";
$mail = @mail($to,$subject,$message,$headers);
if(!$mail){
echo "Email not sent! Please try later...";
}else{
echo "Mail sent successfully!";
}
Note: I've sent e-mail before through PHP on this server so I don't think it's that...