Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > symfony
symfony Forum d'entraide sur le framework PHP symfony. Avant de poster : cours symfony et FAQ symfony
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 02/12/2011, 15h26   #1
Membre à l'essai
 
Homme
Inscription : septembre 2011
Messages : 54
Détails du profil
Informations personnelles :
Sexe : Homme

Informations professionnelles :
Secteur : Industrie

Informations forums :
Inscription : septembre 2011
Messages : 54
Points : 20
Points : 20
Par défaut Installation swift mailer

Hello,

J'ai installé swift mailer (version 4.1.3) dans symfony et tout fonctionne, maintenant je dois mettre le site en ligne donc j'ai copié mon dossier /bin/php/PEAR dans /lib/PEAR/ puis j'ai changé mon "ProjectConfiguration.class.php" en conséquence.

Maintenant mon projet symfony fonctionne parfaitement sauf pour l'envoi de mail, j'ai alors le message suivant :

Code :
Catchable fatal error: Argument 3 passed to Swift_Mime_SimpleHeaderFactory::__construct() must be an instance of Swift_Mime_Grammar, string given in C:\wamp\www\recupcartouche\lib\swift\classes\Swift\Mime\SimpleHeaderFactory.php on line 41
Quand j'essai de faire :
Code php :
1
2
3
4
5
6
 
$this->sendMail(Swift_Message::newInstance('Demande livraison '.$form['enseigne'].' '.$form['point_collecte'])
		  ->setFrom('someone@example.com')
		  ->setTo('people@example.com')
		  ->setBody('Hello world !')
		 );

Quelqu'un a une solution ?
shakly est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 15h14.


 
 
 
 
Partenaires

Hébergement Web