Für mein Mediawiki möchte ich gerne mail über PHP einrichten. Ich kann über die Konsole via
mail jemand@ort.land
eine Mail verschicken. (Über ein Konto bei web.de)
Aber weder testmail von diesem Skript:
<?php
if (@mail("thomas@domain.de","testphp","erfolgreich","From:nospam@web.de")) {
echo('<p>Die Email wurde erfolgreich versendet.</p>');
} else {
echo('<p>Die Email konnte nicht versendet werden.</p>');
}
?>
noch die Wikimails (inkl. Notification) kommen an.
php.ini:
[mail function]
; For Win32 only.
#SMTP = localhost
#smtp_port = 25
; For Win32 only.
sendmail_from="absenderadresse"
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path="/usr/sbin/sendmail"
mail.err:
Feb 13 16:30:25 agip-cvjm postfix/sendmail[27563]: fatal: Recipient addresses must be specified on the command line or via the -t option
ansonsten: OpenSuse10, T-DSL mit dynamischer DNS
mail jemand@ort.land
eine Mail verschicken. (Über ein Konto bei web.de)
Aber weder testmail von diesem Skript:
<?php
if (@mail("thomas@domain.de","testphp","erfolgreich","From:nospam@web.de")) {
echo('<p>Die Email wurde erfolgreich versendet.</p>');
} else {
echo('<p>Die Email konnte nicht versendet werden.</p>');
}
?>
noch die Wikimails (inkl. Notification) kommen an.
php.ini:
[mail function]
; For Win32 only.
#SMTP = localhost
#smtp_port = 25
; For Win32 only.
sendmail_from="absenderadresse"
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path="/usr/sbin/sendmail"
mail.err:
Feb 13 16:30:25 agip-cvjm postfix/sendmail[27563]: fatal: Recipient addresses must be specified on the command line or via the -t option
ansonsten: OpenSuse10, T-DSL mit dynamischer DNS