I have just tried to implement this phpMailer4osC but still not working.... i made sure to made to chage in email.php as you can see below:
//return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));
require_once(DIR_WS_CLASSES . "class.phpmailer.php");
$pMail = new PHPMailer();
$pMail->From = $from_addr;
$pMail->FromName = $from_name;
$pMail->IsSMTP();
$pMail->Host = "mail.acefashionsltd.com"; // replace with your smtp server
$pMail->Username = "******"; // replace with your smtp username (if SMTPAuth is true)
$pMail->Password = "*****"; // replace with your smtp password (if SMTPAuth is true)
$pMail->SMTPAuth = true; // true/false - turn on/off smtp authentication
$pMail->Subject = $subject;
$pMail->Body = $this->output;
$pMail->AddAddress($to_addr, $to_name);
$pMail->IsHTML(true);
return $pMail->Send();
$pMail->ClearAddresses();
$pMail->ClearAttachments();
// begin smtp authentication
include_once(DIR_WS_CLASSES . 'class.smtp.php');
// The smtp server host/ip
$params['host'] = EMAIL_SMTP_HOST_SERVER;
// The smtp server port
$params['port'] = EMAIL_SMTP_PORT_SERVER;
// What to use when sending the helo command. Typically, your domain/hostname
$params['helo'] = EMAIL_SMTP_HELO_SERVER;
// Whether to use basic authentication or not
$params['auth'] = EMAIL_SMTP_ACTIVE_PASSWORD;
// Username for authentication
$params['user'] = EMAIL_SMTP_USERNAME;
// Password for authentication
$params['pass'] = EMAIL_SMTP_PASSWORD;
// The recipients (can be multiple)
$send_params['recipients'] = array("$to_addr");
$send_params['headers'] = array("From: " . EMAIL_SMTP_NAME , "To: $to_addr", "Subject: $subject");
// This is used as in the MAIL FROM: cmd
// It should end up as the Return-Path: header
$send_params['from'] = EMAIL_SMTP_NAME;
// The body of the email
$send_params['body'] = "$this->output";
is_object($smtp = smtp::connect($params)) AND $smtp->send($send_params);
// end smtp authentication
} else {
return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
}
}
do i need to change anything in the two class files provided?
please help im totally stuck! and its really doing my head!!