Bonjour,
Je me suis refais le tuto "envoyer un mail en php" au moins 4 fois mais je n'arrive pas à intercepter les mail de validation de compte que j'envoie via mon projet "blog2.0"
J'ai bien installé nodejs suivie de maildev. j'arrive bien a affiche rma page maildev mail lorsque j'envoie un mail, maildev ne l'intercepte pas.
voilà mon code présent dans mes pages
SETTINGS.PHP
        <?php
            if(isset($_POST['submit'])){
                $name = htmlspecialchars(trim($_POST['name']));
                $email = htmlspecialchars(trim($_POST['email']));
                $email_again = htmlspecialchars(trim($_POST['email_again']));
                $role = htmlspecialchars(trim($_POST['role']));
                $token = token(30);
                $errors = [];
                if(empty($name) || empty($email) || empty($email_again)){
                    $errors['empty'] = "Tous les champs sont obligatoire";
                }
                if($email != $email_again){
                    $errors['different'] = "Adresses email non identique";
                }
                if(email_taken($email)){
                    $errors['taken'] = "Cette email est déjà assigné";
                }
                if(!empty($errors)){
                    ?>
                        <div class="card white">
                            <div class="card-content red-text">
                                <?php
                                foreach ($errors as $error){
                                    echo $error."<br/>";
                                }
                                ?>
                            </div>
                        </div>
                    <?php
                }else{
                    add_staff($name,$email,$role,$token);
                }
            }
        ?>
FICHIER PHP.INI
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = 127.0.0.1
SMTP = localhost
;http://php.net/smtp-port
smtp_port = 1025
Merci d'avance
Mehdips: Voila ce que j'ai sur mon terminal lorsque je tape maildev:
Le 09/04/2017 à 19:05
Last login: Sun Apr 9 18:59:20 on ttys000
You have new mail.
MBPdeElehdiTIBA:~ ElMehdiTiba$ maildev
MailDev app running at 0.0.0.0:1080
MailDev SMTP Server running at 0.0.0.0:1025