Avec une Debian, je voudrais automatiser l'envoi de courriel en utilisant la fonction mail de PHP (avec sendmail). Cela ne fonctionne pas, je pense que j'ai mal configuré mon réseaux (en DHCP).
Voici mes log:
Aug 27 11:17:51 fromon sm-mta[3865]: gethostbyaddr(192.168.0.3) failed: 1
et aussi
Aug 27 11:43:13 fromon sendmail[4887]: j7R9hD5t004887: from=www-data, size=95, class=0, nrcpts=1, msgid=<200508270943.j7R9hD5t004887@fromon.com>, relay=www-data@localhost
Aug 27 11:43:13 fromon sm-mta[4888]: j7R9hDuV004888: from=<www-data@fromon.com>, size=312, class=0, nrcpts=1, msgid=<200508270943.j7R9hD5t004887@fromon.com>, proto=ESMTP, daemon=MSP-v4, relay=fromon.com [127.0.0.1]
Aug 27 11:43:14 fromon sendmail[4887]: j7R9hD5t004887: to=from@free.fr, ctladdr=www-data (33/33), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30095, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j7R9hDuV004888 Message accepted for delivery)
Aug 27 11:43:14 fromon sm-mta[4898]: j7R9hDuV004888: to=<from@free.fr>, ctladdr=<www-data@fromon.com> (33/33), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120312, relay=mx.free.fr. [212.27.42.23], dsn=5.6.0, stat=Data format error
Aug 27 11:43:14 fromon sm-mta[4898]: j7R9hDuV004888: j7R9hEuV004898: DSN: Data format error
Aug 27 11:43:14 fromon sm-mta[4898]: j7R9hEuV004898: to=<www-data@fromon.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
Si quelqu'un a une idée ce serait génial parceque je cherche depuis 4 jours! Merci