Hi everyone, i need help on figureout some things: I did a web page based on php (my first php work) wich prompts the users of my site few questions to determine keyboard type, partitions, w2k existence, users to add and some additional stuff, to send them back an email with instructions on how to self kickstart their new linux box with the ks.cfg file attached. It works fine except when you try to save the attachment with IMP (the web based mail client) where the file comes out with cr/lf line terminators (the win/dos txt format), and naturally the installation doesn't come as expected. The code to attach the file in my php script could be the problem (even if it works fine with netscape, pine and evolution). The attachment is made in a workaround style (because i don't know the way to do it yet) ---Please don't laugh--- $mimehead = "MIME-Version: 1.0\nContent-Type: multipart/mixed;\n boundary=\"----=_NextPart_000_0061_01C17435.88E285C0\"\n"; $mimetxt = "This is a multi-part message in MIME format.\n------=_NextPart_000_0061_01C17435.88E285C0\nContent-Type: text/plain; charset=us-ascii\nContent-Transfer-Encoding: 7bit\n\n"; $mimeattach = "\n------=_NextPart_000_0061_01C17435.88E285C0\nContent-Type: application/octet-stream;\n name=\"ks.cfg\"\nContent-Transfer-Encoding: 7bit\nContent-Disposition: inline;\n filename=\"ks.cfg\"\n\n"; $mimeend = "\n------=_NextPart_000_0061_01C17435.88E285C0--\n"; $fd = fopen ("tmp/".$nomefile, "r"); $attach=""; while ($linea=fgets($fd,4096)) { $attach=$attach.$linea; } $message .= $mimetxt; $message .= $header."\n\n"; $message .= $footer; $message .= $mimeattach; $message .= $attach; $message .= $mimeend; fclose ($fd); mail("$mailtoaddress", "$mailsubject", "$message", "$mimehead"); --I said don't laugh-- Or it could be on the IMP it self. Anyway, as a workaround (the second, just for reference) i thought to put the "col" command on the %pre script to cleanup my unlucky ks.cfg file, but when i try to loopmount stage2.img to insert this new command i can't do anything because it complains that the filesystem is readonly. Please help.!!! btw i would love to share my work if someone is interested. Thanks -- ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Massimo Mongardini _______________________________________________ /____/\ Collaboratore Tecnico E.R. Servizio Calcolo e Reti /____/ \ Istituto Nazionale Fisica Nucleare - Perugia \____\ / massimo.mongardini (at) pg.infn.it - massimo (at) mongardini.it \____\/ t. 075-585-2777