<?php $adres = "adresat@domena.pl"; $plik = "zdjecia/Biznes/TP 029.jpg"; $temat = "mail z załącznikiem"; $naglowki = "From: nadawca@domena.pl\r\n". "MIME-Version: 1.0\r\n". "Content-Type: multipart/mixed; boundary=\"--SEPARATOR\"\r\n". "--SEPARATOR\r\n". "Content-Type: text/html; charset=\"iso-8859-2\"\r\n". "Content-Transfer-Encoding: 8bit\r\n\r\n". "tresc wiadomosci". "--SEPARATOR\r\n". "Content-Type: image/jpeg; name=$plik\r\n". "Content-Transfer-Encoding: base64\r\n". "Content-Disposition: attachment; filename=$plik\r\n\r\n". "--SEPARATOR--"; } else{ } ?>
i jeżeli załączam plik .jpg (a tylko takie będę wysyłał), to nie wysyła mi jpg, tylko mnóstwo robaków zamiast pliku?
