La fonction mail()
                                    
                        ibnomar                    
                                    -
                                     
NHenry Messages postés 15479 Statut Modérateur -
        NHenry Messages postés 15479 Statut Modérateur -
        Bonjour cher mentor!
j'utilise une fonction mail() dans mon code. mais quand j'accède à la page il y a l'erreur suivante :
Warning: mail(): Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp64\www\job_for_all\envoi_message.php on line 45.
voici la configuration de mon ficher php.ini :
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from ="***@***d"
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
aidez moi a resoudre le problème s'il vous plait
                
            
                
    
    
    
        j'utilise une fonction mail() dans mon code. mais quand j'accède à la page il y a l'erreur suivante :
Warning: mail(): Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp64\www\job_for_all\envoi_message.php on line 45.
voici la configuration de mon ficher php.ini :
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from ="***@***d"
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
aidez moi a resoudre le problème s'il vous plait
        A voir également:         
- La fonction mail()
- Fonction si et - Guide
- Windows live mail - Télécharger - Mail
- Publipostage mail - Accueil - Word
- Comment télécharger un mail - Guide
- Cegetel mail ✓ - Forum Mail
2 réponses
                        
                    Ton serveur de mail est en local ? (localhost")
Si non, mets les informations dans le fichier qui correspondent à ton fournisseur de mail.
De plus il est courant que la fonction mail soit désactivée par les hébergeurs à cause des sites infiltrés qui envoient du spam.
                
                
    
                Si non, mets les informations dans le fichier qui correspondent à ton fournisseur de mail.
De plus il est courant que la fonction mail soit désactivée par les hébergeurs à cause des sites infiltrés qui envoient du spam.
