IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Could not instantiate mail function


Sujet :

Langage PHP

  1. #21
    Membre averti
    Profil pro
    Étudiant
    Inscrit en
    Décembre 2012
    Messages
    29
    Détails du profil
    Informations personnelles :
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Décembre 2012
    Messages : 29
    Par défaut
    qu'est ce je dois ajouter dans le php.ini?

    J'ai le fichier sendmail.ini suivant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    ; configuration for fake sendmail
     
    ; if this file doesn't exist, sendmail.exe will look for the settings in
    ; the registry, under HKLM\Software\Sendmail
     
    [sendmail]
     
    ; you must change mail.mydomain.com to your smtp server,
    ; or to IIS's "pickup" directory.  (generally C:\Inetpub\mailroot\Pickup)
    ; emails delivered via IIS's pickup directory cause sendmail to
    ; run quicker, but you won't get error messages back to the calling
    ; application.
     
    smtp_server=smtpout.secureserver.net
     
    ; smtp port (normally 25)
     
    smtp_port=25
     
    ; SMTPS (SSL) support
    ;   auto = use SSL for port 465, otherwise try to use TLS
    ;   ssl  = alway use SSL
    ;   tls  = always use TLS
    ;   none = never try to use SSL
     
    smtp_ssl=tls
     
    ; the default domain for this server will be read from the registry
    ; this will be appended to email addresses when one isn't provided
    ; if you want to override the value in the registry, uncomment and modify
     
    default_domain=gmail.com
     
    ; log smtp errors to error.log (defaults to same directory as sendmail.exe)
    ; uncomment to enable logging
     
    error_logfile=error.log
     
    ; create debug log as debug.log (defaults to same directory as sendmail.exe)
    ; uncomment to enable debugging
     
    ;debug_logfile=debug.log
     
    ; if your smtp server requires authentication, modify the following two lines
     
    auth_username=mon_mail
    auth_password=mon_pswrd
     
    ; if your smtp server uses pop3 before smtp authentication, modify the 
    ; following three lines.  do not enable unless it is required.
     
    pop3_server=pop.gmail.com 
    pop3_username=mon_mail
    pop3_password=mon_pswrd
     
    ; force the sender to always be the following email address
    ; this will only affect the "MAIL FROM" command, it won't modify 
    ; the "From: " header of the message content
     
     
     
    ; force the sender to always be the following email address
    ; this will only affect the "RCTP TO" command, it won't modify 
    ; the "To: " header of the message content
     
    ;force_recipient=
     
    ; sendmail will use your hostname and your default_domain in the ehlo/helo
    ; smtp greeting.  you can manually set the ehlo/helo name if required
     
    hostname=Safa

  2. #22
    Expert confirmé Avatar de papajoker
    Homme Profil pro
    Développeur Web
    Inscrit en
    Septembre 2013
    Messages
    2 333
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Nièvre (Bourgogne)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Septembre 2013
    Messages : 2 333
    Par défaut
    c'est du chinois pour toi ?
    On trouve cette info avec la moindre recherche sur le web !
    ; if your smtp server requires authentication, modify the following two lines
    auth_username=mon_mail
    auth_password=mon_pswrd
    Es tu OBLIGE, de passer par gmail ?
    lorsque le site sera en ligne , ce sera un autre, ici c'est juste pour test en local?
    Ton fournisseur internet ne te fournit pas un compte smtp ?

  3. #23
    Membre averti
    Profil pro
    Étudiant
    Inscrit en
    Décembre 2012
    Messages
    29
    Détails du profil
    Informations personnelles :
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Décembre 2012
    Messages : 29
    Par défaut
    oui mais je suis en phase de test en local

    et même de cette manière le mail n'est pas envoyé et la fonction mail() est désactivée

  4. #24
    Membre confirmé
    Inscrit en
    Avril 2004
    Messages
    104
    Détails du profil
    Informations forums :
    Inscription : Avril 2004
    Messages : 104
    Par défaut
    Le problème c'est que si tu fais tout plein d'arrangement spécifique pour que ça marche en local, une fois passé sur ton serveur de production c'est pas dit que ça fonctionne....
    tu devrais tester directement en prod avec des pages cachées ou accessibles que par toi....

  5. #25
    Membre averti
    Profil pro
    Étudiant
    Inscrit en
    Décembre 2012
    Messages
    29
    Détails du profil
    Informations personnelles :
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Décembre 2012
    Messages : 29
    Par défaut
    cela est stressant. J'ai testé avec le serveur smtp de mon fournisseur et de même

    si je désinstalle wamp et le réinstaller? cela peut changer la situation?

  6. #26
    Membre averti
    Profil pro
    Étudiant
    Inscrit en
    Décembre 2012
    Messages
    29
    Détails du profil
    Informations personnelles :
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Décembre 2012
    Messages : 29
    Par défaut
    voilà, c'est en réinstallant le wamp que la fonction mail de base fonctionne

    Il me reste le PHPMailer , j'ai toujours le problème de "Could not instantiate mail function "

    Y-t-il quelques choses que je dois changer dans la class.phpmailer.php ?

Discussions similaires

  1. [PHP 5.0] [phpmailer] Could not instantiate mail function
    Par afrodje dans le forum Langage
    Réponses: 3
    Dernier message: 31/03/2010, 11h31
  2. [PHPMailer] Could not instantiate mail function
    Par Sayrus dans le forum Bibliothèques et frameworks
    Réponses: 2
    Dernier message: 07/09/2007, 12h14
  3. Réponses: 1
    Dernier message: 13/02/2007, 10h07
  4. Réponses: 1
    Dernier message: 22/11/2006, 13h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo