The Q2A install of PHPMailer seems to lack the necessary SMTP class (class.smtp.php) for sending via SMTP.
So, first fetch a version of PHPmailer 2 which provides it. I downloaded version 2.0.4 from here:
http://sourceforge.net/projects/phpmailer/
Unzip that, get the file, and put it in /qa-external/.
Then copy in the example emailer, call it qa-external-emailer.php.
You will need the qa_send_email() function to look something like this:
function qa_send_email($params)
{
require_once QA_INCLUDE_DIR.'qa-class.phpmailer.php';
require_once dirname(__FILE__) . '/class.smtp.php';
$mailer=new PHPMailer();
$mailer->CharSet='utf-8';
$mailer->IsSMTP(); // enable SMTP
$mailer->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mailer->Host = "ssl://smtp.gmail.com:465";
$mailer->Username = "<your gmail email address here>";
$mailer->Password = "<your gmail password here >";
$mailer->From=$params['fromemail'];
$mailer->Sender=$params['fromemail'];
$mailer->FromName=$params['fromname'];
$mailer->AddAddress($params['toemail'], $params['toname']);
$mailer->Subject=$params['subject'];
$mailer->Body=$params['body'];
if ($params['html'])
$mailer->IsHTML(true);
return $mailer->Send();
}
Put in your whole gmail email address and password above, and remember to set QA_EXTERNAL_EMAILER to true in qa-config.php.