> > 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 > '[email protected]' . 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 ( > '[email protected] '=>' Team ' ) ) ; $ Email- > replyTo (array ( > '[email protected] '=>' Team ' ) ) ; $ Email- > To ( '[email protected] ' ) ; $ > Email- > object ('test' ) ; $ Email- > send ( ) ; > email.php > classe EmailConfig { $ gmail public = array ( «transport '=>' SMTP ' ,'host > ' => ' ssl : //smtp.gmail.com ' ; 'port' = > 465 , 'timeout'= > 30000 , > 'username' > => ' [email protected] ' , '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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
