lo integre a lo que me indicas
no funciona
Fatal error: Call to undefined method PHPMailer::SetFrom() in C:\AppServ\www\calendario\views\recu.php on line 70
Código PHP:
Ver originalrequire("class.phpmailer.php");
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$mail->SetLanguage("es", 'phpMailer/language/');
$mail->IsSMTP(); // telling the class to use SMTP
try {
$mail->Host = "smtp.live.com"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "smtp.live.com"; // sets the SMTP server
$mail->Port = 26; // set the SMTP port for the GMAIL server
$mail->Password = "yourpassword"; // SMTP account password
$mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
$mail->Send();
echo "Message Sent OK<p></p>\n";
} catch (phpmailerException $e) {
echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
echo $e->getMessage(); //Boring error messages from anything else!
}