Mails über php senden

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Mails über php senden

Postby Boz » 16. September 2006 15:22

Hallo alle zusammen :)

Ich google jetzt schon den halben Tag und komm zu keiner Lösung! Ich habe XAMPP installiert und alle Systeme funktionieren super!

Nun möchte ich gerne über den Server Mails über meine GMX-Adresse versenden. Ich hab schon alles ausprobiert bin aber zu keiner Lösung gekommen.
Den Mercury hab ich schon versucht einzurichten, bin aber gescheitert.

Das habe ich in den Dateien editiert:

php.ini:

Code: Select all
[mail function]
; For Win32 only.
SMTP = mail.gmx.net
smtp_port = 25

; For Win32 only.
;sendmail_from = MeikiBoz at gmx.de

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "D:\xampp\xampp\sendmail\sendmail.exe"



sendmail.ini

Code: Select all
[sendmail]

; you must change mail.mydomain.com to your smtp server

smtp_server=mail.gmx.net

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

;default_domain=http://meikiboz.selfip.net

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

;error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

;debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

;auth_username=MeikiBoz at gmx.de
;auth_password=meinpasswort

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

;pop3_server=pop.gmx.net
;pop3_username=meikiBoz at gmx.de
;pop3_password=meinpasswort

; to force the sender to always be the following email address, uncomment and
; populate with a valid email address.  this will only affect the "MAIL FROM"
; command, it won't modify the "From: " header of the message content

;force_sender=MeikiBoz at gmx.de

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

;hostname=http://meikiboz.selfip.net


(anstatt diesem " at " natürlich ein @-Zeichen ;))

"meinpasswort" = Mein eMailPasswort

phpinfo.php

Code: Select all
sendmail_from   no value   no value   
sendmail_path   no value   no value   
serialize_precision   100   100   
short_open_tag   On   On   
SMTP   mail.gmx.net   mail.gmx.net   
smtp_port   25   25

(no value???) --> Einstellmöglichkeit?

Und noch was! Wenn ich etwas über mein TestScript versenden möchte kommt folgendes:

Code: Select all
Warning: mail() [function.mail]: SMTP server response: 550 5.1.7 <automatische eMail <meikiboz@gmx.de>... User is unknown {mp027}


Ich würde mich sehr freuen, wenn ihr mir helfen könntet!

Herzlichen Dank schonmal im vorraus!

Mit freundlichen Grüßen
Boz
 
Posts: 5
Joined: 08. September 2006 12:05

Postby Wiedmann » 16. September 2006 15:33

Wie man Sendmail einrichtet, findest du in der "XAMPP FAQ". (Den Mercury brauchst du in diesem Fall nicht).
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Boz » 16. September 2006 16:22

Danke für die Antwort!

Habe nun alles so editiert wie es (http://faq.kwm-web.info/doku.php?id=php&s=sendmail) Hier zu finden ist! Es kommt keine Fehlermeldung, ect.! Allerdings bekomme ich keine eMail in das Postfach!

Entweder es dauert über eine halbe Stunde oder irgendwas anders stimmt nicht ...

Mit freundlichen Grüßen

P.S.: Selbst mit selbst erstelltem Script kommt die Mail nicht an:

Code: Select all
<?php
    $to      = 'meikiboz@gmx.de';
    $subject = 'Testmail';
    $message = 'Hallo, dies ist ein Test.';
    $headers = 'From: Michael <MeikiBoz@gmx.de>';

    mail($to, $subject, $message, $headers);
?>
Boz
 
Posts: 5
Joined: 08. September 2006 12:05


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 22 guests