$message = "body of email";
$to = "[email protected]";
$subject = "E mail";
$from = "[email protected]";
mail($to, $subject, $message,"From: $from\nX-Mailer: PHP/" .phpversion());
chesterstu said:There are a number of classes on the internet that allow you to connect to a SMTP server of your choice and send an email thro that. Many web hosts don't like u using mail() and disable it.
shine said:He's right. PHPMailer is the class I've used previously.