_EmailProblem: PHP email problem

Beitrag lesen

Hallo,

ich habe ein PHP Test-Skript:

<?php
 ini_set('display_errors', true);
 error_reporting(E_ALL);

mail("webmaster@exampel1.de",
   "Hello!",
   "Hello this is a test email.",
   "From: webmaster@exampel2.de\r\n".
   "Reply-To: webmaster@exampel2.de\r\n" .
   "X-Mailer: PHP/" . phpversion()) or die("Mail konnte nicht abgeschickt werden!");

?>

Es wird immer or die() ausgeführt. Ich verwende sendmail PHP5.1.6 und Apache 2.2.3.

Meine Mails kommen jedes mal zurück und die Ausgabe lautet so ähnlich wie unten.

Die Exampel -adressen gibt es selbstverständlich.

Wie kann ich mein Problem lösen?

_EmailProblem

From MAILER-DAEMON@localhost.localdomain  Thu Jan 11 14:17:52 2007
Return-Path: MAILER-DAEMON@localhost.localdomain
Received: from localhost.localdomain (partypower.ath.cx [127.0.0.1])
 by localhost.localdomain (8.13.8/8.13.8) with ESMTP id l0BDHpAa003261
 for apache@localhost.localdomain; Thu, 11 Jan 2007 14:17:52 +0100
Received: from localhost (localhost)
 by localhost.localdomain (8.13.8/8.13.8/Submit) id l0BDHoqe003260;
 Thu, 11 Jan 2007 14:17:51 +0100
Date: Thu, 11 Jan 2007 14:17:51 +0100
From: Mail Delivery Subsystem MAILER-DAEMON@localhost.localdomain
Message-Id: 200701111317.l0BDHoqe003260@localhost.localdomain
To: apache@localhost.localdomain
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
 boundary="l0BDHoqe003260.1168521471/localhost.localdomain"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--l0BDHoqe003260.1168521471/localhost.localdomain

The original message was received at Thu, 11 Jan 2007 14:17:50 +0100
from apache@localhost

----- The following addresses had permanent fatal errors -----
Message@coole-files.de
    (reason: 553 5.5.4 apache@localhost.localdomain... Real domain name required for sender address)
    (expanded from: Message@coole-files.de)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:

MAIL From:apache@localhost.localdomain SIZE=131 AUTH=apache@localhost.localdomain

<<< 553 5.5.4 apache@localhost.localdomain... Real domain name required for sender address
501 5.6.0 Data format error

--l0BDHoqe003260.1168521471/localhost.localdomain
Content-Type: message/delivery-status

Reporting-MTA: dns; localhost.localdomain
Arrival-Date: Thu, 11 Jan 2007 14:17:50 +0100

Final-Recipient: RFC822; Message@coole-files.de
Action: failed
Status: 5.5.4
Diagnostic-Code: SMTP; 553 5.5.4 apache@localhost.localdomain... Real domain name required for sender address
Last-Attempt-Date: Thu, 11 Jan 2007 14:17:51 +0100

--l0BDHoqe003260.1168521471/localhost.localdomain
Content-Type: message/rfc822

Return-Path: <apache>
Received: (from apache@localhost)
 by localhost.localdomain (8.13.8/8.13.8/Submit) id l0BDHoqd003260;
 Thu, 11 Jan 2007 14:17:50 +0100
Date: Thu, 11 Jan 2007 14:17:50 +0100
Message-Id: 200701111317.l0BDHoqd003260@localhost.localdomain
To: Message@coole-files.de
Subject: Registration
From: root@partypower.ath.cx
X-Mailer: PHP/5.1.6

Hello this is a test email.

--l0BDHoqe003260.1168521471/localhost.localdomain--