error while using phpmailer
Posted: Thu Feb 22, 2007 3:35 am
feyd | Please use
If I run this I am getting the following error
Message was not sent
Mailer Error: Language string failed to load: instantiate
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]Code: Select all
<?php
require 'c:\phpmailer\class.phpmailer.php';
$mail = new PHPMailer();
$mail->Priority = '3';
$mail->From = 'rer@yahoo.com';
$mail->FromName = 'Ra';
$mail->AddAddress('hpp@yahoo.com','Hpp');
$mail->IsHTML(true); // send as HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the test mail';
if(!$mail->Send())
{
echo 'Message was not sent <p>';
echo 'Mailer Error: ' . $mail->ErrorInfo;
}
else
{
echo 'Message has been sent';
}
$mail->ClearAddresses();
$mail->ClearAttachments();
?>Message was not sent
Mailer Error: Language string failed to load: instantiate
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]