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 :

Envoi d'e-mail ne fonctionne pas


Sujet :

Langage PHP

  1. #1
    Modérateur

    Avatar de CinePhil
    Homme Profil pro
    Ingénieur d'études en informatique
    Inscrit en
    Août 2006
    Messages
    16 801
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 61
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur d'études en informatique
    Secteur : Enseignement

    Informations forums :
    Inscription : Août 2006
    Messages : 16 801
    Points : 34 063
    Points
    34 063
    Billets dans le blog
    14
    Par défaut Envoi d'e-mail ne fonctionne pas
    Bonjour,

    Avec le code de la FAQ PHP pour l'envoi d'e-mail en texte simple, le programme dit que l'e-mail a bien été envoyé mais rien n'arrive aux destinataires (principal, copie, copie cachée).

    Dans phpinfo, j'ai ces occurrences du mot mai :
    mail.add_x_header On On
    mail.force_extra_parameters no value no value
    mail.log no value no value
    sendmail_from no value no value
    sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
    Path to sendmail /usr/sbin/sendmail -t -i
    Sendmail Milter Harald Radi
    Dans mon php.ini, j'ai ça :
    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
    [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 = me@example.com
     
    ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    ;sendmail_path =
     
    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail().
    ;mail.force_extra_parameters =
     
    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = On
     
    ; The path to a log file that will log all mail() calls. Log entries include
    ; the full path of the script, line number, To address and headers.
    ;mail.log =
    ; Log mail to syslog (Event Log on Windows).
    ;mail.log = syslog
    Qu'est-ce qui manque pour que ça fonctionne ?

  2. #2
    Responsable Systèmes


    Homme Profil pro
    Gestion de parcs informatique
    Inscrit en
    Août 2011
    Messages
    17 705
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Gestion de parcs informatique
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Août 2011
    Messages : 17 705
    Points : 43 785
    Points
    43 785
    Par défaut
    As-tu un serveur SMTP sur la machine ?

  3. #3
    Modérateur

    Avatar de CinePhil
    Homme Profil pro
    Ingénieur d'études en informatique
    Inscrit en
    Août 2006
    Messages
    16 801
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 61
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur d'études en informatique
    Secteur : Enseignement

    Informations forums :
    Inscription : Août 2006
    Messages : 16 801
    Points : 34 063
    Points
    34 063
    Billets dans le blog
    14
    Par défaut
    Il y a sendmail ; il faut autre chose ?

  4. #4
    Responsable Systèmes


    Homme Profil pro
    Gestion de parcs informatique
    Inscrit en
    Août 2011
    Messages
    17 705
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Gestion de parcs informatique
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Août 2011
    Messages : 17 705
    Points : 43 785
    Points
    43 785
    Par défaut
    Il faudrait commencer par regarder dans la queue sendmail pour voir si celui-ci est bien parti.

    Un serveur mail mal configuré et notamment en open relay verra ses mails systématiquement rejetés.

Discussions similaires

  1. [Toutes versions] l'envoie de mail ne fonctionne pas
    Par patricktoulon dans le forum Macros et VBA Excel
    Réponses: 1
    Dernier message: 18/11/2010, 22h52
  2. [MySQL] Envoi mail ne fonctionne pas !
    Par mikael2235 dans le forum PHP & Base de données
    Réponses: 5
    Dernier message: 20/05/2010, 17h36
  3. [phpmailer] Envoi d'e-mail ne fonctionne pas
    Par _jey_ dans le forum Bibliothèques et frameworks
    Réponses: 3
    Dernier message: 03/09/2009, 15h28
  4. Réponses: 4
    Dernier message: 27/05/2009, 15h50
  5. Envoi de mail avec 'mail' ne fonctionne pas
    Par flavio_dev dans le forum Linux
    Réponses: 1
    Dernier message: 01/09/2008, 14h22

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