Erreur de langue
letabis
Messages postés
37
Date d'inscription
Statut
Membre
Dernière intervention
-
letabis Messages postés 37 Date d'inscription Statut Membre Dernière intervention -
letabis Messages postés 37 Date d'inscription Statut Membre Dernière intervention -
Bonjour, je desire envoyer des mails en local avec phpmailer, lorsque j'exécute on m'affiche cette erreur : Mailer Error: Language string failed to load: instantiate ;
je sais pas trop comment m'y prendre, j'ai déja charcher à resourdre le problème de plusieurs facons mais sans succès, a tous ceux qui peuvent m'aider cordialement...
voici mon code:
<?php
if(isset($_POST['mail']) and isset($_POST['tabis']))
{
$mal = $_POST['mail'];
$code = $_POST['tabis'];
}
include('class.phpmailer.php');
include('class.smtp.php');
$mail = new PHPMailer ();
$mail->SetLanguage('en','/phpmailer/language/');
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = $mal ; // SMTP username
$mail->Password = "password"; // SMTP password
$webmaster_email = $mal ; //Reply to this email ID
$email="Tchitake8@gmail.com"; // Recipients email ID
$name="Baresi thomas"; // Recipient's name
$mail->From = $webmaster_email;
$mail->FromName = "Tabis";
$mail->AddAddress($email,$name);
$mail->AddReplyTo($webmaster_email,"Webmaster");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // attachment
$mail->IsHTML(true); // send as HTML
$mail->Subject = utf8_decode("Message de confirmation!");
$mail->Body = 'Bonjour M/Mme, Le service informatique du CCA vous informe de votre activation au systeme
et votre nouveau mot de passe est'.$code;
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
if($mail->Send())
{
echo ' <html>
<head>
<link rel="stylesheet" type = "text/css" href="css/css/blueimp-gallery.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/boostrap.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-image-gallery.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-image-gallery.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-responsive.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-responsive.css">
<link rel="stylesheet" type = "text/css" href="css/css/docs.css">
<link rel="stylesheet" type = "text/css" href="css/cus-icons.css">
<script src="css/js/jquery.js"></script>
<script src="css/js/bootstrap.min.js "></script>
<script src="css/js/bootstrap-typeahead.js "></script>
</head>
<body bgcolor="silver">
<fieldset width="80%" style="background-color:rgb(226,226,199);border-radius:10px;border:2px solid groove;">
<h1 align="center" style="font-family:arial;font-style:italic;opacity:0.8;color:silent;"> Votre mail a été envoyé avec succès</h1><br><br>
<div align="center">
<a href="../super.php"><h3><input type="submit" value="Retour" class="btn btn-success" style="width:200px;height:80px;text-align:center/></h3></a><br>
</div>
</fieldset>
<marquee><h3><img src="../image/IMG_50.gif" alt="colombe">Merci d\'avoir choisit Le CCA</h3></marquee>
</body>
</html>';
}
else
{
echo "Mailer Error: " . $mail->ErrorInfo;
}
?>
je sais pas trop comment m'y prendre, j'ai déja charcher à resourdre le problème de plusieurs facons mais sans succès, a tous ceux qui peuvent m'aider cordialement...
voici mon code:
<?php
if(isset($_POST['mail']) and isset($_POST['tabis']))
{
$mal = $_POST['mail'];
$code = $_POST['tabis'];
}
include('class.phpmailer.php');
include('class.smtp.php');
$mail = new PHPMailer ();
$mail->SetLanguage('en','/phpmailer/language/');
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = $mal ; // SMTP username
$mail->Password = "password"; // SMTP password
$webmaster_email = $mal ; //Reply to this email ID
$email="Tchitake8@gmail.com"; // Recipients email ID
$name="Baresi thomas"; // Recipient's name
$mail->From = $webmaster_email;
$mail->FromName = "Tabis";
$mail->AddAddress($email,$name);
$mail->AddReplyTo($webmaster_email,"Webmaster");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // attachment
$mail->IsHTML(true); // send as HTML
$mail->Subject = utf8_decode("Message de confirmation!");
$mail->Body = 'Bonjour M/Mme, Le service informatique du CCA vous informe de votre activation au systeme
et votre nouveau mot de passe est'.$code;
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
if($mail->Send())
{
echo ' <html>
<head>
<link rel="stylesheet" type = "text/css" href="css/css/blueimp-gallery.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/boostrap.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-image-gallery.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-image-gallery.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-responsive.min.css">
<link rel="stylesheet" type = "text/css" href="css/css/bootstrap-responsive.css">
<link rel="stylesheet" type = "text/css" href="css/css/docs.css">
<link rel="stylesheet" type = "text/css" href="css/cus-icons.css">
<script src="css/js/jquery.js"></script>
<script src="css/js/bootstrap.min.js "></script>
<script src="css/js/bootstrap-typeahead.js "></script>
</head>
<body bgcolor="silver">
<fieldset width="80%" style="background-color:rgb(226,226,199);border-radius:10px;border:2px solid groove;">
<h1 align="center" style="font-family:arial;font-style:italic;opacity:0.8;color:silent;"> Votre mail a été envoyé avec succès</h1><br><br>
<div align="center">
<a href="../super.php"><h3><input type="submit" value="Retour" class="btn btn-success" style="width:200px;height:80px;text-align:center/></h3></a><br>
</div>
</fieldset>
<marquee><h3><img src="../image/IMG_50.gif" alt="colombe">Merci d\'avoir choisit Le CCA</h3></marquee>
</body>
</html>';
}
else
{
echo "Mailer Error: " . $mail->ErrorInfo;
}
?>
A voir également:
- Erreur de langue
- Changer langue windows 10 - Guide
- Telecharger langue arabe - Télécharger - Bureautique
- Changer langue facebook - Guide
- Telecharger la langue arabe sur le clavier - Télécharger - Divers Web & Internet
- Erreur 3000 france tv - Forum Lecteurs et supports vidéo
Fatal error: Call to a member function SetLanguage() on a non-object
qu'est que je peux faire sil vous plait