501 Incorrect Adress Format bei mail()

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • 501 Incorrect Adress Format bei mail()

    PHP-Code:
    // Parameter, in Wirklichkeit aus Formular
    $an 'ich.bin@domain.tld';
    $von'ichbinauch@domain.tld';
    $headers 'From: ich.bin@domain.tld' "\r\n" 'Reply-To: ' $von ;
    ini_set('SMTP',"smtp.isp.tld" oder "smtp.webhoster.tld");

    // Mail absenden
    $mailokmail ($an,$betreff,$mitteilung,$headers); 
    Mein ISP provider (tele2) gibt mir die Antwort: SMTP server response: 501 Incorrect Address Format. Hingegen nimmt mein webhoster mit Argomail genau dasselbe an.

    Das skript läuft am heimpc, windowsxph, php-cgi5.1.2.2 (also nicht beim webhoster), wo ich am ISP-Tropf hänge. SMTP scheint auch stimmen, sonst würde es nicht 501 geben. Und wie erwähnt, mein webhoster akzeptiert es. Wo muss man dies suchen? Danke.

  • #2
    Und so ?
    PHP-Code:
    $headers 'From: ich<ich.bin@domain.tld>' "\r\n" 'Reply-To: ' $von ."\r\n\r\n"
    Gruss

    tobi
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Kommentar


    • #3
      Laut manual gilt:
      sendmail_from string
      Which "From:" mail address should be used in mail sent from PHP under Windows
      Tatsächlich betrifft sendmail_from den Return-Path: Der ISP prüft, dass der Return-Path: ein Konto bei sich ist, dies entspricht in etwa der Bemerkung in http://www.php-resource.de/forum/sho...threadid=68042 Punkt 3.1, bezüglich From:

      From: konnte beliebig sein, aber der Return-Path: in "sendmail_from" muss stimmen.
      Zuletzt geändert von miximaxi; 18.04.2006, 19:00.

      Kommentar

      Lädt...
      X