1. Dodanie możliwości wysłania dwóch załączników.
2. Brak możliwości wysłania wiadomości bez dodania przynajmniej jednego załącznika
z komunikatem o konieczności dodania jednego załącznika
Oto formularz który należy edytować
FORMULARZ
<?php <form enctype="multipart/form-data" name=doit action="sendmail.php3" method=POST> <table cellpadding=0 cellspacing=0> <tr><td><b>Tob></td><td><input type="text" name="to" size=40></td></tr> <tr><td><b>Ccb></td><td><input type="text" name="cc" size=40></td></tr> <tr><td><b>Bccb></td><td><input type="text" name="bcc" size=40></td></tr> <tr><td><b>Subjectb></td><td><input type="text" name="subject" size=40> </td></tr></table> <textarea name="body" rows=15 cols=50 wrap="message"> </textarea> <input type="submit" name="sendmail" value="Send"> ?>
SENDFORM
<? $mailheaders = "Fro: $from\n"; $mailheaders .= "Reply-To: $from\n"; $mailheaders .= "Cc: $cc\n"; $mailheaders .= "X-Mailer: PHP by www.mjs27.prv.pl\n"; if ($attach != "none") { $mailheaders .= "MIME-versio: 1.0\n"; $mailheaders .= "Content-ty: multipart/mixed; "; $mailheaders .= "boundary=\"Message-Boundary\"\n"; $mailheaders .= "Content-transfer-encodi: 7BIT\n"; $mailheaders .= "X-attachmen: $attach_name"; $body_top = "--Message-Boundary\n"; $body_top .= "Content-ty: text/plain; charset=US-ASCII\n"; $body_top .= "Content-transfer-encodi: 7BIT\n"; $body_top .= "Content-descriptio: Mail message body\n\n"; $msg_body = $body_top . $msg_body; $msg_body .= "\n\n--Message-Boundary\n"; $msg_body .= "Content-ty: $attach_type; name=\"$attach_name\"\n"; $msg_body .= "Content-Transfer-Encodi: BASE64\n"; $msg_body .= "Content-dispositio: attachment; filename=\"$attach_name\"\n\n"; $msg_body .= "$encoded_attach\n"; $msg_body .= "--Message-Boundary--\n"; } ?>
Oferty prosze przesyłac na PW lub GG 5664420
TEMAT ZAMKNIĘTY