PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : bitte schnell -> imap_body() nur text/html mails ausgeben?



maik15
19-11-2005, 22:07
Hi,

Ich versuche gerade, mit imap_body() emails auszugeben. funktioniert auch.
Aber da wird immer das alles angezeigt:



Von: Maik <xxx@xxx.de>
An: xxx@xxx.net
Datum: Sat, 19 Nov 2005 22:52:12 +0100
Betreff: w
This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C5ED5B.E316B450
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Text



----------------------------------------------

xxx




------=_NextPart_000_0000_01C5ED5B.E316B450
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DDE link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Text<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>----------------------------------------------</span><=
/font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><a =
href=3D"xxx">xxx</a></spa=
n></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0000_01C5ED5B.E316B450--



der text/html - teil wird so ausgegeben, weil bei der ausgebe ein
<pre></pre>
drumrum ist!

Ich will jetzt aber bloß den html teil.
Habe schon google gefragt und so aber nix.
Kann mir bitte jemand helfen?

Habe auch was von image/jpeg usw gelesen.
Weil ich ein Bild in eine Mail eingefügt habe.
Kann ich das auch irgendwie so machen, dass das Bild angezeigt wird?
Denn da kam bloß so ein 100 zeilen langer code.

Mir scheint, die imap-funktionen hat noch niemand richtig kommentiert?!

Gruß
Maik

Turbohummel
20-11-2005, 07:12
Bringt dir die Funktion imap_fetchbody() irgendwas? Wenn nein: Regexfilter einsetzen.

maik15
20-11-2005, 11:50
hm, stimmt.
bloß wie sage ich dem, das der bloß text/html ausgeben soll?
Und wie ist das mit image/xxx, brauch man das, um bilder anzuzeigen?

Maik