Bonjour a tous,
J'ai un problème. Je n'arrive pas à faire fonctionner la fonction mail() en php.
j'ai un serveur ubuntu, j'ai installé ssmtp à la place de sendmail ou de postfix.
J'ai redirigé le lien de /usr/sbin/sendmail vers usr/sbin/ssmtp et changé les configuration de etc/ssmtp/ssmtp.conf
Et pourtant la fonction ne marche pas.
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 root=mon adresse mail # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=mail.mondomaine.tld # Where will the mail seem to come from? rewriteDomain=mondomaine.tld # The full hostname hostname=mondomaine.tld # Are users allowed to set their own From: address? # YES - Allow the user to specify their own From: address # NO - Use the system generated From: address FromLineOverride=YES
Faut-il faire qqchose d'autre.
MERci d'avance
Partager