<?php $boundary = "-->===_54654747_===<---->>4255==_"; $head = "From: $na\n"; $head = $head . "Reply-To: $em1\n"; $head = $head . "X-Mailer: php\n"; $head = $head . "X-Sender: $em1\n"; $head = $head . "MIME-version: 1.0\n"; $head = $head . "Content-type: multipart/mixed;"; $head = $head . "boundary=\"$boundary\"\n"; $head = $head . "Content-transfer-encoding: 7BIT\n"; $head = $head . "X-attachments: $lo;\n\n"; $mesg = "--" . $boundary . "\n"; $mesg = $mesg . "Content-Type: text/plain; charset=\"us-ascii\"\n\n"; $mesg = $mesg . "Nazwa: $na\n Miasto: $mi\n Kod pocztowy: $ko\n Adres: $ad\n Gmina: $gm\n Powiat: $po\n Województwo: $wo\n"; $mesg = $mesg . "--" . $boundary . "\n"; $mesg = $mesg . "Content-type: " . $lo_type . "; name=\"$lo_name\";\n"; $mesg = $mesg . "Content-Transfer-Encoding: base64\n"; $mesg = $mesg . "Content-disposition: attachment; filename=\"$lo_name\"\n\n"; $mesg = $mesg . fileopenanddecode($lo) . "\n"; $mesg = $mesg . "--" . $boundary . "-- \n"; ?>
wszystko dziala ok, ale chcialbym wysylac wiecej niz jeden zalacznik. Jak mam to zrobić? I druga sprawa: dlaczego nie mam w tym mailu polskich liter?