> > Bonsoir, Je suis débutante en CakePHP et je rencontre le problème qui suit > : J'ai besoin d'envoyer des courriels à travers CakeEmail , qui > fonctionne très bien en local mais pas sur le serveur . Je suis sur ' > cPanel' . J'ai donc un problème avec l'adresse email de mon serveur > 'nore...@campany.ma' . J'ai essayé avec une adresse 'Gmail' mais j'ai > toujours un problème du genre 'smtp server did not accept the password'.
> Voici mon code : > contrôleur > Email $ = new CakeEmail ( « gmail ») ; Email- $ > de (array ( > 'mygm...@gmail.com '=>' Team ' ) ) ; $ Email- > replyTo (array ( > 'mygm...@gmail.com '=>' Team ' ) ) ; $ Email- > To ( 'x...@gmail.com ' ) ; $ > Email- > object ('test' ) ; $ Email- > send ( ) ; > email.php > classe EmailConfig { $ gmail public = array ( «transport '=>' SMTP ' ,'host > ' => ' ssl : //smtp.gmail.com ' ; 'port' = > 465 , 'timeout'= > 30000 , > 'username' > => ' mygm...@gmail.com ' , 'password' = > 'secret' ) ;} > Merci pour votre aide ! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.