No entiendo muy bien a que configuración, este es parte del código que uso:
Código PHP:
Ver original$mail = new PHPMailer();
$subj = 'Video';
$body .='<a href="'.$_POST['url_video'].'">'.$_POST['url_video'].'</a>';
$mail->SMTPDebug = 2;
//Ask for HTML-friendly debug output
$mail->Debugoutput = 'html';
//Set the hostname of the mail server
$mail->Host = 'smtp.gmail.com';
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = 587;
//Set the encryption system to use - ssl (deprecated) or tls
$mail->IsSendmail();
$mail->SMTPSecure = 'tls';
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication - use full email address for gmail
//Password to use for SMTP authentication
$mail->Password = "xxxxxx";
//Set who the message is to be sent from
$mail->setFrom('info@'.$_SESSION['nombre'].'.com', ''.$_SESSION['nombre'].'');
//Set an alternative reply-to address
$mail->addReplyTo('info@'.$_SESSION['nombre'].'.com', ''.$_SESSION['nombre'].'');
//Set who the message is to be sent to
//Set the subject line
$mail->Subject = $subj;
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->msgHTML($body);
//Replace the plain text body with one created manually
$mail->AltBody = $body;
//Attach an image file
//$mail->addAttachment('images/phpmailer_mini.gif');
//send the message, check for errors
if (!$mail->send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
}