Kod :
<?php $headers = "MIME-Version: 1.0rn"; $headers .= "From: ".$ustawienia->mail_nadawca."rn"; $headers .= "Reply-To: ".$ustawienia->mail_email."rn"; $headers .= "Content-Type: multipart/related; type="multipart/alternative"; boundary="----=MIME_BOUNDRY_main_message"n"; $headers .= "X-Mailer: phpn"; $headers .=" X-Priority: 1rn"; $headers .= "------=MIME_BOUNDRY_main_message n"; $headers .= "Content-Type: multipart/alternative; boundary="----=MIME_BOUNDRY_message_parts"n"; $wiadomosc = " <html> <head><title>".$temat."</title></head> <body> <table cellspacing=1 cellpadding=1 border=0 width=400> <tr> <td valign=top bgcolor='#ffffff' style='padding-left:15px; padding-right:15px;'> <br> <center> <font style='color:#455663;'>".$opis."</font> </center> <br> <br> <hr noshade size=1 color=#D5DAE0> <font style='color:#455663;'><b>".$temat."</b></font><br>"; $wiadomosc .= " <img src=3D"cid:cal.gif" style="margin-top:1px;" align=top>n"; $wiadomosc .= " <font style='color:#C0C0C0;'>".$data."</font><br> <br> <p align=justify style='color:#656565;'>".$tresc."</p> <br> <br> <hr noshade size=1 color=#D5DAE0> <hr noshade size=1 color=#D5DAE0> <br> <b>".$ustawienia->mail_podpis."</b> </td> </tr> </table> </body> </html>"; $plik = "gfx/cal.gif"; $pliknazwa = "cal.gif"; $mesg = "------=MIME_BOUNDRY_message_partsn"; $mesg = $mesg . "Content-type: text/html; charset=iso-8859-2rn"; $mesg = $mesg . $wiadomosc . "n"; $mesg = $mesg . "------=MIME_BOUNDRY_message_parts--n"; $mesg = $mesg . "n"; $mesg = $mesg . "------=MIME_BOUNDRY_main_messagen"; $mesg = $mesg . "Content-Type: image/gif; name=$pliknazwan"; $mesg = $mesg . "Content-Transfer-Encoding: base64rn"; $mesg = $mesg . "Content-ID: <cal.gif>n"; $mesg = $mesg . "n"; $mesg = $mesg . "$encodedn"; $mesg = $mesg . "nn"; $mesg = $mesg . "------=MIME_BOUNDRY_main_message--n"; ?>
Prosze o pomoc.
Proszę u używanie bbcode! [kszychu]