php mailer Mailer Error: Language string failed to load: connect_host?

BananaBill

New Member
I keep getting this error..below is my code:\[code\]<?phpini_set("include_path", "phpmailer/"); require 'phpmailer/class.phpmailer.php';$mailer = new PHPMailer();$mailer->IsSMTP();$mailer->Host = 'smtp.gmail.com';$mailer->Port='465';$mailer->SMTPAuth = TRUE;$mailer->Username = '[email protected]'; // Change this to your gmail adress$mailer->Password = '****'; // Change this to your gmail password$mailer->From = '[email protected]'; // This HAVE TO be your gmail adress$mailer->FromName = 'Belmer'; // This is the from name in the email, you can put anything you like here$mailer->Body = 'This is the main body of the email';$mailer->Subject = 'This is the subject of the email';$mailer->AddAddress('[email protected]'); // This is where you put the email adress of the person you want to mailif(!$mailer->Send()){ echo "Message was not sent<br/ >"; echo "Mailer Error: " . $mailer->ErrorInfo;}else{ echo "Message has been sent";}?>\[/code\]Anyone knows this error? Your reply is greatly appreciated.
 
Back
Top