Mam formularz i chcę mieć w nim pole :
<input name="zdjecia" type="file" >
Jak zrobić by załadować zdjęcie do formularza , i wysłać go na e-mail ?
Chcę ominąć ładowanie zdjęcia na serwer , chcę by prosto szedł na maila .
czekam na pomoc ...

<input name="zdjecia" type="file" >
<?php $boundary = "-->===_54654747_===<---->>4255==_"; // Zmiennych $subject i $sendto nie musimy w żaden sposób przerabiać. // Teraz trzeba sformatować nagłówek. $head = "From: $fromn"; $head = $head . "Reply-To: $replyton"; $head = $head . "X-Mailer: phpn"; $head = $head . "X-Sender: $fromn"; $head = $head . "MIME-version: 1.0n"; $head = $head . "Content-type: multipart/mixed; "; $head = $head . "boundary="$boundary"n"; $head = $head . "Content-transfer-encoding: 7BITn"; $head = $head . "X-attachments: $filename_name;nn"; // Jeszcze tylko treść wiadomości i możemy słać pocztę $mesg = "--" . $boundary . "n"; //pamiętamy dwa minusy na początku $mesg = $mesg . "Content-Type: text/plain; charset="us-ascii"nn"; $mesg = $mesg . $message . "n"; $mesg = $mesg . "--" . $boundary . "n"; //pamiętamy dwa minusy na początku $mesg = $mesg . "Content-type: " . $filename_type . "; name="$filename_name";n"; $mesg = $mesg . "Content-Transfer-Encoding: base64n"; $mesg = $mesg . "Content-disposition: attachment; filename= "$filename_name"nn"; $mesg = $mesg . fileopenanddecode($filename) . "n"; //czytamy plik i go kodujemy $mesg = $mesg . "--" . $boundary . "-- n"; //pamiętamy dwa minusy na początku i na końcu //funkcja odczytująca plik i kodująca go d o formatu base64 zgodnie z RFC 2045 function fileopenanddecode($file) { } return $encoded; } // i to wszystko teraz tylko //i poszło ?>