Znalazłem oto taki skrypt w neci i... czemu on nie działa ? tzn. wysyła maila ale nie ma załącznika oraz tekstu w liscie :/
<?php
$adres = "bronx01@o2.pl";
$plik = "mail.jpg";
$temat = "mail z załącznikiem";
$naglowki = "From: ja@o2.plrn".
"MIME-Version: 1.0rn".
"Content-Type: multipart/mixed; boundary="--SEPARATOR"rn".
"--SEPARATORrn".
"Content-Type: text/html; charset="iso-8859-2"rn".
"Content-Transfer-Encoding: 8bitrnrn".
"to jest treść wiadomości, i lepiej, żeby się załącznik pokazał, ".
"bo jak nie, to się zdenerwuję...rnrn".
"--SEPARATORrn".
"Content-Type: image/jpeg; name=$plikrn".
"Content-Transfer-Encoding: base64rn".
"Content-Disposition: attachment; filename=$plikrnrn".
"--SEPARATOR--";
$tresc = "elo elo";
if (mail ($adres, $temat, $tresc, $naglowki)) print "ok"; e
?>