mrg2007 Posted September 6, 2006 Share Posted September 6, 2006 [b]i have problem with output of imap_body function when i receive a mail with html form i face to additional text around the main of message in email for example : i send a message(email) by outlook express with html format to my email that i want show by imap_body like this: Hello World! after send a email with outlook express i use this code to view my email: [/b] [color=blue]<?php $mail=imap_open("{mrg.name:143/imap}INBOX","myemail","mypassword"); echo nl2br(imap_body($mail,$i)); imap_close($mail); ?> [/color] [b]this text view in my output: [/b] [color=green]This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C3EE11.5A3FEF20 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit [color=red]Hello World [/color] ------=_NextPart_000_0014_01C3EE11.5A3FEF20 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable xmlns:w=3D"urn:schemas-microsoft-com : office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> style=3D'text-align:left;direction:ltr;unicode-bidi: embed'> style=3D'font-size:10.0pt;font-family:Arial'>Hello World face=3DArial> lang=3DAR-SA dir=3DRTL = style=3D'font-size:10.0pt;font-family:Arial'> dir=3DRTL>! size=3D2 face=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> > ------=_NextPart_000_0014_01C3EE11.5A3FEF20-- [/color] ----------------------- [b]and when i send email in persian language this text will be changed. :( :obut when i receive that email by outlook express just see Hello World string without any additional things ???are there any one whom help me and say to me what shall i do to get correct view message with imap_body :-*Thank You [/b] 8) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.