PHP Mail Problem: Anhang kommt nur als Zeichenkette an

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

  • PHP Mail Problem: Anhang kommt nur als Zeichenkette an

    Hallo,

    ich möchte wie soviele hier eine automatische Mail per PHP versenden.

    MIME Mail mit PHP versenden (PHP4) gefällt mir lt. Beschreibung sehr: http://www.feike.biz/php_mime_mail_de.html

    Eine Mail wird versendet. Im Client wird allerdings nur das angezeigt (sollte eigentlich ein Bild sein):

    "If you can read this, please consider to upgrade your mail client program--MIXD+07b4ead86501ff1c0a27a97135bbef6aContent-Type: multipart/alternative; boundary="ALT+07b4ead86501ff1c0a27a97135bbef6a"--ALT+07b4ead86501ff1c0a27a97135bbef6aContent-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: 8bitHallo Welt, dies ist meine HTML EMail mit BILD!--ALT+07b4ead86501ff1c0a27a97135bbef6aContent-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: 8bitHallo <b>Welt</b>, <br><br>dies ist meine <u>HTML</u> EMail mit BILD!--ALT+07b4ead86501ff1c0a27a97135bbef6a----MIXD+07b4ead86501ff1c0a27a97135bbef6aContent-Disposition: inline; filename=woman01.jpgContent-Type: image/jpeg; name=woman01.jpgContent-ID: woman01.jpgContent-Transfer-Encoding: base64/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4ADkFkb2JlAGTAAAAAAf/b
    AIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxsc
    Hx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f
    Hx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgA9QCWAwERAAIRAQMRAf/EAK0AAAEFAQEBAQAAAAAAAAAA
    AAADBAUGBwIIAQkBAAIDAQEBAAAAAAAAAAAAAAABAgQFAwYHEAACAQMCAwUEBgQMBgMBAAABAgMA
    EQQhBTESBkFhIhMHUXEyFI.......usw......BQB/9k=
    --MIXD+07b4ead86501ff1c0a27a97135bbef6a--"


    Als Clienten habe ich OE und das aktuelle Thunderbird probiert - ohne Erfolg.

    Als Befehl benutze ich:

    "$mail->addBinaryFileAsAttachment("woman01.jpg", "image/jpeg", "woman01.jpg", "woman01.jpg");"

    Ich weiß einfach nicht, an welcher Stelle ich anfangen soll zu probieren. Am Code, am Clienten oder am Server?

    Für Hilfe ist dankbar:

    MAZup! aus Berlin

  • #2
    Wenn nichts geht veruschs mal mit dem phpmailer damit kann man ohne Probleme Anhänge versenden.

    gruß
    Robert

    Kommentar


    • #3
      hallo mazup,

      dein problem sind die linefeeds im string! MIME ist zeilenorientiert, da gibts zwischen unix und windows immer wieder proleme.

      experimentiere mal mit $mail->setEOL("\r\n"); vor dem senden.


      viele grüße
      phpkopf5
      Scripting is back :-)

      Kommentar

      Lädt...
      X