witam :]
dzisiaj zaczalem sobie pisac webmaila :] jestem z niego bardzo zadowolony :] problem z nim jest tylko w momencie w ktorym pojawiaja sie zalaczniki do maili :?
wywala mi tresc maila (wraz z naglowkami)
Kod
------------A5C61DD3883A919
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
jak sobie z tym poradzic :?:
kod
<?
require 'funkcje.php';
$login = $_SESSION['login'];
$haslo = $_SESSION['haslo'];
$host = '{localhost:110/pop3}';
head();
$mbox = @imap_open(\"$host\", \"$login\", \"$haslo\");
$id = $_GET['id'];
$naglowki = imap_header($mbox,$id);
$struktura = imap_fetchstructure($mbox, $i);
$temat = $naglowki->subject;
if ($temat == null)
{
$temat = '(brak tematu)';
}
$od = $naglowki->personal.\"(\".$naglowki->from[0]->mailbox.\"@\".$naglowki->from[0]->host.\")\";
$data = explode(\" \",$naglowki->date); $data = $data[1].\" \".$data[2].\" \".$data[3];
$wielkosc = round($struktura->bytes/1024
,2
); ?>
<table>
<tr>
<td> Od: </td> <td>
<? echo $od; ?> </td>
</tr>
<tr>
<td> Do: </td> <td>
<? echo $do;?> </td>
</tr>
<tr>
<td> Data: </td> <td>
<? echo $data; ?> </td>
</tr>
<tr>
<td> Temat: </td> <td>
<? echo $temat; ?> </td>
</tr>
<tr>
<td colspan='2'> <a href='naglowki.php?id=
<? echo $id;?>' target='_new'> Pokaz wszystkie naglowki </a> </td>
</tr>
<?
$wiadomosc = imap_body($mbox,$id);
$wiadomosc = eregi_replace(\"([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])\",\"<a href=\"\1://23\"> 1://23 </a>\",$wiadomosc); echo \"<tr> <td colspan='2'>\"; echo \"</tr> </td>\"; tail();
?>
Ten post edytował noose 19.06.2004, 22:36:59