Sponsor-Board.de
Hilfe - Php Mail funktion disabled ?

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Hilfe (/forumdisplay.php?fid=102)
+---- Forum: Linux-Server (/forumdisplay.php?fid=105)
+---- Thema: Hilfe - Php Mail funktion disabled ? (/showthread.php?tid=27273)


Hilfe - Php Mail funktion disabled ? - snowman - 26.06.2012 16:04

Hey zusammen,
habe auf einigen meiner Seiten Kontaktformulare (auf php basiert) welche nicht funktionieren, da scheinbar die Mail Funktion von Php auf meinem Apache deaktiviert ist. [Link: Registrierung erforderlich]

Könnt ihr mir sagen, wie ich diese Funktion zum laufen bekomme ?

Lg Jannik


RE: Hilfe - Php Mail funktion disabled ? - Storage-Base.de - 26.06.2012 16:12

Poste mal dein Source und die Fehlermeldung ausm error log.


RE: Hilfe - Php Mail funktion disabled ? - snowman - 26.06.2012 17:00

Hi,
im Errorlog meines Apaches ist nichts aufzufinden.

Hier das Skript:

Code:
<?php
$emailadresse = $_POST['emailadresse'];
$name = $_POST['name'];
$nachricht = $_POST['nachricht'];

$nachricht .= "\n\n Gesendet von: ".$emailadresse;


if($nachricht!="" && $name!="" && $emailadresse!="") mail("[email protected]", $name, $nachricht);
header("Location: index.html");

?>



Mfg


RE: Hilfe - Php Mail funktion disabled ? - _DEL6825 - 26.06.2012 17:03

-


RE: Hilfe - Php Mail funktion disabled ? - snowman - 26.06.2012 17:10

Geht leider nicht..

Folgender Error taucht immer wieder auf:

Zitat:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, <-- meine Mail Adresse --> and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.




RE: Hilfe - Php Mail funktion disabled ? - lash87 - 26.06.2012 17:16

Zitat:
More information about this error may be available in the server error log.

und was steht in der "server error log" ?

Irgendwas muss da ja drin stehen.


RE: Hilfe - Php Mail funktion disabled ? - snowman - 26.06.2012 17:38

lash87 schrieb:

Zitat:
More information about this error may be available in the server error log.

und was steht in der "server error log" ?

Irgendwas muss da ja drin stehen.

Das ist halt das Problem, dort ist nichts zu finden Mad ?

Mfg


RE: Hilfe - Php Mail funktion disabled ? - Storage-Base.de - 26.06.2012 17:39

Dann mal error_reporting aktivieren!?


RE: Hilfe - Php Mail funktion disabled ? - snowman - 26.06.2012 18:03

Hier nun einmal ein Auszug aus dem Log:

Zitat:
199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:23:20 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:23:20 199022 imapd: 1340727800.857228 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=101, sent=468, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:23:20 199022 imapd: 1340727800.861763 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=418, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:23:22 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:23:22 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:23:22 199022 imapd: 1340727802.171812 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=106, sent=364, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:24:51 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:24:51 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:24:52 199022 imapd: 1340727892.286726 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=391, sent=5790, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:25:00 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:25:00 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:25:01 199022 imapd: 1340727901.230933 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=1789, rcvd=498, sent=6305, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:25:07 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:25:07 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:25:07 199022 imapd: 1340727907.724128 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=38, sent=250, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:25:09 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:25:09 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:25:10 199022 imapd: 1340727910.289634 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=288, rcvd=752, sent=1349, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:25:11 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:25:11 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:25:12 199022 imapd: 1340727912.905 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=38, sent=250, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:25:40 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:25:40 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:25:40 199022 /var/qmail/bin/relaylock[17973]: /var/qmail/bin/relaylock: mail from 127.0.0.1:34576 (localhost)
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: Handlers Filter before-queue for qmail started ...
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: [email protected]
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: [email protected]
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: hook_dir = '/opt/psa/handlers/before-queue'
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: recipient[3] = '[email protected]'
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: handlers dir = '/opt/psa/handlers/before-queue/recipient/[email protected]'
Jun 26 18:25:41 199022 qmail-queue-handlers[17976]: starter: submitter[17977] exited normally
Jun 26 18:25:41 199022 imapd: 1340727941.115204 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=648, sent=305, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:26:09 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:26:09 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:26:10 199022 imapd: 1340727970.41120 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=599, sent=6030, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:26:13 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:26:13 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:26:13 199022 imapd: 1340727973.982140 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=135, sent=438, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:26:17 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:26:17 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:26:17 199022 imapd: 1340727977.225689 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=81, body=0, rcvd=406, sent=2437, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:26:28 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:26:28 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:26:28 199022 imapd: 1340727988.626078 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=27, body=549, rcvd=509, sent=2199, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:28:26 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:28:26 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:28:26 199022 imapd: 1340728106.644338 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=106, sent=364, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:29:01 199022 CRON[18008]: (root) CMD (/opt/psa/admin/sbin/backupmng >/dev/null 2>&1)
Jun 26 18:33:26 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:33:27 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:33:27 199022 imapd: 1340728407.85769 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=106, sent=364, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir
Jun 26 18:38:24 199022 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 26 18:38:24 199022 imapd: IMAP connect from @ [::ffff:127.0.0.1]INFO: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 26 18:38:24 199022 imapd: 1340728704.876544 LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=106, sent=364, maildir=/var/qmail/mailnames/deinevent.net/info/Maildir




RE: Hilfe - Php Mail funktion disabled ? - lash87 - 26.06.2012 19:44

kannst ja mal versuchen in deiner php.ini folgenden zu ändern.

sendmail_path
/usr/sbin/sendmail -t -i

ändern in

/usr/sbin/sendmail -t -i -f [email protected]

wenn es danach nicht funktioniert kannst es wieder rückgängig machen.


RE: Hilfe - Php Mail funktion disabled ? - _DEL7456 - 26.06.2012 19:59

-


RE: Hilfe - Php Mail funktion disabled ? - Storage-Base.de - 26.06.2012 20:27

Hast du dem Mail Server auch nen Hostname verpasst? Wenn nicht kann das zur ne Ablehnung der Mail führen, was du aber auch normal im Log sehen solltest.