Attention, ce sujet est un sujet ancien (1684 jours sans réponse)
Gras [b]Texte[/b] Italique [i]Italique[/i] Souligné [u]Souligné[/u] Barré [strike]Barré[/strike]
Courriel [email=nobody@nobody.org]Nom[/email] Lien [url=http://www.website.com]Texte[/url] Ancre [anchor]Nom[/anchor] Image [img]http://www.website.com/image.jpg[/img] Insérer une image en provenance du site
Aligné à gauche [align=left]Texte[/align] Centré [align=center]Texte[/align] Aligné à droite [align=right]Texte[/align] Toute la largeur [align=justify]Texte[/text]
Couleur [color=#000000]Text[/color] Mise en forme [highlight=pascal]Texte[/highlight] Widgets Emoticons :code: [:code] Convertisseur HTML vers BBCode Convertisseur Word vers BBCode
Prévisualisation Vérification de l'orthographe

Copier Coller Couper Tout sélectionner
Tout effacer Insérer la date Insérer l'heure Insérer la date et heure Insérer votre IP
Liste [list=square][item]BlaBla[/item][/list] Liste Numérotée [list=decimal][item]BlaBla[/item][/list]
Citation [quote=name]Texte[/quote] Spoiler [spoiler]James est le meurtrier![/spoiler]
Tout en majuscules [uppercase]Texte[/uppercase] Tout en minuscules [lowercase]Texte[/lowercase] l33t [l33t]Je suis un nerd[/l33t] Texte en indice [sub]Texte[/sub] Texte en exposant [sup]Texte[/sup] Taille du texte [size=8]Texte[/size]
 
ihirwe
Bonjour,

Lorsque je veux à jour le fichier composer.js J'ai ce ci : j'ai toujours le même problème, le mail est envoyé mais rien du tout dans ma boite :

Microsoft Windows [version 10.0.18363.752]
(c) 2019 Microsoft Corporation. Tous droits réservés.

C:\Users\Home>cd C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1

C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 25 installs, 0 updates, 0 removals
- Installing phpmailer/phpmailer (v6.1.5): Loading from cache
- Installing symfony/finder (v2.8.52): Loading from cache
- Installing gregwar/captcha (v1.1.8): Loading from cache
- Installing sebastian/version (1.0.6): Loading from cache
- Installing sebastian/global-state (1.1.1): Loading from cache
- Installing sebastian/recursion-context (1.0.5): Loading from cache
- Installing sebastian/exporter (1.2.2): Loading from cache
- Installing sebastian/environment (1.3.8): Loading from cache
- Installing sebastian/diff (1.4.3): Loading from cache
- Installing sebastian/comparator (1.2.4): Loading from cache
- Installing symfony/polyfill-ctype (v1.15.0): Loading from cache
- Installing symfony/yaml (v2.8.52): Loading from cache
- Installing doctrine/instantiator (1.0.5): Loading from cache
- Installing webmozart/assert (1.7.0): Loading from cache
- Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
- Installing phpdocumentor/type-resolver (0.3.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (3.2.2): Loading from cache
- Installing phpspec/prophecy (v1.10.3): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
- Installing phpunit/php-timer (1.0.9): Loading from cache
- Installing phpunit/php-token-stream (1.4.12): Loading from cache
- Installing phpunit/php-file-iterator (1.4.5): Loading from cache
- Installing phpunit/php-code-coverage (2.2.4): Loading from cache
- Installing phpunit/phpunit (4.8.36): Loading from cache
phpmailer/phpmailer suggests installing psr/log (For optional PSR-3 debug logging)
phpmailer/phpmailer suggests installing league/oauth2-google (Needed for Google XOAUTH2 authentication)
phpmailer/phpmailer suggests installing hayageek/oauth2-yahoo (Needed for Yahoo XOAUTH2 authentication)
phpmailer/phpmailer suggests installing stevenmaguire/oauth2-microsoft (Needed for Microsoft XOAUTH2 authentication)
phpmailer/phpmailer suggests installing symfony/polyfill-mbstring (To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
2 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>

C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>
La syntaxe de la commande n’est pas correcte.

C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>
C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\huge-3.3.1>
max
A tester avec une vraie adresse email dont le SPF du domaine est correctement configuré pour passer par smtp2go:
https://support.smtp2go.com/hc/en-gb/articles/115004408567



ps: je ne vois rien d'anormal dans le code
max
Ces mails sont envoyés avec l'adresse no-reply@example.com ? Ils doivent être dans les spams ou bloqués avant même d'arriver dans ta boite mail.
ihirwe
Bonjour,

ça fait quelques jours que je n' arrive pas à comprendre pq le mail est envoyé mais rien n'est dans ma boîte de réception.

Pourriez vous me dire ce qui ne marche pas si vous ayez le temps de regarder:

voici la configuration :
-------------------------

voici le lien de l'application : https://github.com/panique/huge

/**
* EMAIL_USED_MAILER: Check Mail class for alternatives
* EMAIL_USE_SMTP: Use SMTP or not
* EMAIL_SMTP_AUTH: leave this true unless your SMTP service does not need authentication
*/
'EMAIL_USED_MAILER' => 'phpmailer',
'EMAIL_USE_SMTP' => true,
'EMAIL_SMTP_HOST' => 'mail.smtp2go.com',
'EMAIL_SMTP_AUTH' => true,
'EMAIL_SMTP_USERNAME' => '[snip]',
'EMAIL_SMTP_PASSWORD' => '[snip]',
'EMAIL_SMTP_PORT' => 465,
'EMAIL_SMTP_ENCRYPTION' => 'ssl',
/**
* Configuration for: Email content data
*/
'EMAIL_PASSWORD_RESET_URL' => 'login/verifypasswordreset',
'EMAIL_PASSWORD_RESET_FROM_EMAIL' => 'no-reply@example.com',
'EMAIL_PASSWORD_RESET_FROM_NAME' => 'My Project',
'EMAIL_PASSWORD_RESET_SUBJECT' => 'Password reset for PROJECT XY',
'EMAIL_PASSWORD_RESET_CONTENT' => 'Please click on this link to reset your password: ',
'EMAIL_VERIFICATION_URL' => 'register/verify',
'EMAIL_VERIFICATION_FROM_EMAIL' => 'no-reply@example.com',
'EMAIL_VERIFICATION_FROM_NAME' => 'My Project',
'EMAIL_VERIFICATION_SUBJECT' => 'Account activation for PROJECT XY',
'EMAIL_VERIFICATION_CONTENT' => 'Please click on this link to activate your account: ',



  1. <?php 
  2. //Using PHPMailer's namespace 
  3. use PHPMailer\PHPMailer\PHPMailer
  4. /** 
  5. * Class Mail 
  6. * Handles everything regarding mail-sending. 
  7. */ 
  8. class Mail 
  9.    /** 
  10. * @var mixed variable to collect errors 
  11. */ 
  12.     private $error
  13.     /** 
  14. * Try to send a mail by using PHP's native mail() function. 
  15. * Please note that not PHP itself will send a mail, it's just a wrapper for Linux's sendmail or other mail tools 
  16. * Good guideline on how to send mails natively with mail(): 
  17. * @see http://stackoverflow.com/a/24644450/1114320 
  18. * @see http://www.php.net/manual/en/function.mail.php 
  19. */ 
  20.     public function sendMailWithNativeMailFunction() 
  21.     { 
  22.         // no code yet, so we just return something to make IDEs and code analyzer tools happy 
  23.         return false
  24.     } 
  25.     /** 
  26. * Try to send a mail by using SwiftMailer. 
  27. * Make sure you have loaded SwiftMailer via Composer. 
  28. * @return bool 
  29. */ 
  30.      
  31.     public function sendMailWithSwiftMailer() 
  32.     { 
  33.         // no code yet, so we just return something to make IDEs and code analyzer tools happy 
  34.         return false
  35.     } 
  36.     /** 
  37. * Try to send a mail by using PHPMailer. 
  38. * Make sure you have loaded PHPMailer via Composer. 
  39. * Depending on your EMAIL_USE_SMTP setting this will work via SMTP credentials or via native mail() 
  40. * @param $user_email 
  41. * @param $from_email 
  42. * @param $from_name 
  43. * @param $subject 
  44. * @param $body 
  45. * @return bool 
  46. * @throws Exception 
  47. * @throws phpmailerException 
  48. */ 
  49.      
  50.     public function sendMailWithPHPMailer($user_email$from_email$from_name$subject$body
  51.     { 
  52.         $mail = new PHPMailer
  53.          
  54.         // you should use UTF-8 to avoid encoding issues 
  55.         $mail->CharSet = 'UTF-8'
  56.         // if you want to send mail via PHPMailer using SMTP credentials 
  57.         if (Config::get('EMAIL_USE_SMTP')) { 
  58.             // set PHPMailer to use SMTP 
  59.             $mail->IsSMTP(); 
  60.             // 0 = off, 1 = commands, 2 = commands and data, perfect to see SMTP errors 
  61.             $mail->SMTPDebug = 0
  62.             // enable SMTP authentication 
  63.             $mail->SMTPAuth = Config::get('EMAIL_SMTP_AUTH'); 
  64.             // encryption 
  65.             if (Config::get('EMAIL_SMTP_ENCRYPTION')) { 
  66.                 $mail->SMTPSecure = Config::get('EMAIL_SMTP_ENCRYPTION'); 
  67.             } 
  68.             // set SMTP provider's credentials 
  69.             $mail->Host = Config::get('EMAIL_SMTP_HOST'); 
  70.             $mail->Username = Config::get('EMAIL_SMTP_USERNAME'); 
  71.             $mail->Password = Config::get('EMAIL_SMTP_PASSWORD'); 
  72.             $mail->Port = Config::get('EMAIL_SMTP_PORT'); 
  73.         } else { 
  74.             $mail->IsMail(); 
  75.         } 
  76.         // fill mail with data 
  77.         $mail->From = $from_email
  78.         $mail->FromName = $from_name
  79.         $mail->AddAddress($user_email); 
  80.         $mail->Subject = $subject
  81.         $mail->Body = $body
  82.         // try to send mail, put result status (true/false into $wasSendingSuccessful) 
  83.         // I'm unsure if mail->send really returns true or false every time, tis method in PHPMailer is quite complex 
  84.         $wasSendingSuccessful = $mail->Send(); 
  85.         if ($wasSendingSuccessful) { 
  86.             return true
  87.  
  88.         } else { 
  89.             // if not successful, copy errors into Mail's error property 
  90.             $this->error = $mail->ErrorInfo
  91.             return false
  92.         } 
  93.     } 
  94.     /** 
  95. * The main mail sending method, this simply calls a certain mail sending method depending on which mail provider 
  96. * you've selected in the application's config. 
  97. * @param $user_email string email 
  98. * @param $from_email string sender's email 
  99. * @param $from_name string sender's name 
  100. * @param $subject string subject 
  101. * @param $body string full mail body text 
  102. * @return bool the success status of the according mail sending method 
  103. */ 
  104.      
  105.     public function sendMail($user_email$from_email$from_name$subject$body
  106.     { 
  107.         if (Config::get('EMAIL_USED_MAILER') == "phpmailer") { 
  108.             // returns true if successful, false if not 
  109.             return $this->sendMailWithPHPMailer
  110.                 $user_email$from_email$from_name$subject$body 
  111.             ); 
  112.         } 
  113.         if (Config::get('EMAIL_USED_MAILER') == "swiftmailer") { 
  114.             return $this->sendMailWithSwiftMailer(); 
  115.         } 
  116.         if (Config::get('EMAIL_USED_MAILER') == "native") { 
  117.             return $this->sendMailWithNativeMailFunction(); 
  118.         } 
  119.     } 
  120.     /** 
  121. * The different mail sending methods write errors to the error property $this->error, 
  122. * this method simply returns this error / error array. 
  123. * @return mixed 
  124. */ 
  125.      
  126.     public function getError() 
  127.     { 
  128.         return $this->error
  129.     } 
  130. }


merci d'avance
Catégorie:  






Ada
CSS
Cobol
CPP
HTML
Fortran
Java
JavaScript
Pascal
Perl
PHP
Python
SQL
VB
XML
Anon URL
DailyMotion
eBay
Flickr
FLV
Google Video
Google Maps
Metacafe
MP3
SeeqPod
Veoh
Yahoo Video
YouTube
6px
8px
10px
12px
14px
16px
18px
Informaticien.be - © 2002-2024 AkretioSPRL  - Generated via Kelare
The Akretio Network: Akretio - Freedelity - KelCommerce - Votre publicité sur informaticien.be ?