(Download PhpMailer) and install to the include/mail directory
change include/class.misc.php, (function sendmail approx. Line 78)
include(INCLUDE_DIR.'mail/mail.php');
create include/mail/mail.php
<?
require_once("class.phpmailer.php");
$mail = new phpmailer();
// $mail->Mailer = "mail"; // send via php
$mail->IsSMTP(); // send via SMTP
$mail->Mailer = "smtp";
$mail->Host = "smtp.yourwebhost.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentification
$mail->Username = "yourusername"; // SMTP username
$mail->Password = "yourpassword"; // SMTP password
$mail->From = "your@address.com";
$mail->FromName = $fromname;
$mail->AddAddress("$to");
$mail->AddReplyTo("$fromname", "$fromaddress");
// $mail->WordWrap = 50; // set word wrap
// $mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
// $mail->AddAttachment("/tmp/image.jpg", "new.jpg");
// $mail->IsHTML(false); // send as HTML
$mail->Subject = utf8_decode($subject);
$mail->Body = utf8_decode($message);
// $mail->AltBody = "This is the text-only body";
$IsSent = 1;
if(!$mail->Send())
{
echo "email_has_not_been_sent ";
echo "Mailer Error: " . $mail->ErrorInfo;
$IsSent = 0;
exit;
}
?>
Enjoy.