坐等大侠,Mail_mimeDecode 如何使用,希望用过这个类的朋友指点下

WBOY
Freigeben: 2016-06-13 11:50:21
Original
1340 Leute haben es durchsucht

坐等大侠,Mail_mimeDecode 怎么使用,希望用过这个类的朋友指点下
构造函数的时候不知道该怎么传这个参数,怎么传都没有解出内容来

$mailhandle = new Mail_mimeDecode($intput);
Nach dem Login kopieren

下面是获取到的邮件的header和body
Array<br />(<br />    [0] => Delivered-To: [email&#160;protected]<br />    [1] => Received: by 10.194.118.165 with SMTP id kn5csp54354wjb;        Sun, 18 Aug 2013 16:02:50 -0700 (PDT)<br />    [2] => Return-Path: <[email&#160;protected]ptions.bounces.google.com><br />    [3] => Received-SPF: pass (google.com: domain of [email&#160;protected]ptions.bounces.google.com designates 10.42.90.198 as permitted sender) client-ip=10.42.90.198<br />    [4] => Authentication-Results: mr.google.com;       spf=pass (google.com: domain of [email&#160;protected]ptions.bounces.google.com designates 10.42.90.198 as permitted sender) [email&#160;protected]be-subscriptions.bounces.google.com;       dkim=pass [email&#160;protected]<br />    [5] => X-Received: from mr.google.com ([10.42.90.198])        by 10.42.90.198 with SMTP id l6mr6351416icm.12.1376866970755 (num_hops = 1);        Sun, 18 Aug 2013 16:02:50 -0700 (PDT)<br />    [6] => DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=youtube.com; s=20120806;        h=mime-version:list-unsubscribe:message-id:date:subject:from:to         :content-type;        bh=n7PitUTrJ87AT0nZCJSaJq42DcI0/OdbAhSrNcKQ8ME=;        b=L514lliLxaWgldKczFgLfD9p1xL0rKpLzr5Br9IuL4PWNkT2YPcU6FVTBK/6hPA3Cb         sVmh0Wnwesx+s15ift8nNL8sPfVv77JOdgen74G315tBB5g07C97IjiZpGdz3t1Y56zR         qzo4h0WkRL4fdNk/HXUnTBuetnJGFiVC98094qxIhg48rrzbeEmoy696xX0OsNDrx4CC         6+sLhsgQvTzjZ4HzX09F56LgToWvU05hWuQ5IEW2OeLfBKEtTcsikWstGUzq36LZ/pVW         /RYibbavItiH7uii6/H6iHyN3Fi73WqvtdRf/wU0ZuQl8J0o/NbOVyHCcC5UuNS/kTOs         w56w==<br />    [7] => MIME-Version: 1.0<br />    [8] => X-Received: by 10.42.90.198 with SMTP id l6mr4798207icm.12.1376866969820; Sun, 18 Aug 2013 16:02:49 -0700 (PDT)<br />    [9] => List-Unsubscribe: <http://www.youtube.com/email_unsubscribe?uid=kRXgrwCG_Dm3jiwgQAd57A&action_unsubscribe=obHjTl_QJfjCuVOTnVZ-xVMYjNN8MTM3Njg2Njk2OUAxMzc2ODY2OTY5&feature=em-subs_digest><br />    [10] => Message-ID: <[email&#160;protected]><br />    [11] => Date: Sun, 18 Aug 2013 23:02:49 +0000<br />    [12] => Subject: =?GB2312?Q?Adrian_Crenshaw=A3=BAcharacter_assassination_animation_?=	=?GB2312?Q?test=0D=0A?=<br />    [13] => From: YouTube <[email&#160;protected]><br />    [14] => To: Zi Bei <[email&#160;protected]><br />    [15] => Content-Type: multipart/alternative; boundary=90e6ba614c92a39e3004e440d28a<br />)<br /> Array<br />(<br />    [0] => --001a11c255345c277404e49f0c1b<br />    [1] => Content-Type: text/plain; charset=GB2312; format=flowed; delsp=yes<br />    [2] => Content-Transfer-Encoding: base64<br />    [3] => <br />    [4] => sb7W3CBHb29nbGUrIMjIw8XQxc+iDQoNCrLpv7TIyMPF0MXPoiAgDQpodHRwczovL3BsdXMuZ29v<br />    [5] => Z2xlLmNvbS9fL25vdGlmaWNhdGlvbnMvZW1saW5rP2Vtcj0xMTUyMjc3MzI2MDc0OTQ1Mjc3NiZl<br />    [6] => bWlkPUNKQ2s0T0x3azdrQ0ZjbEFNUW9kNVcwQUFBJnBhdGg9JTJGZXhwbG9yZSZkdD0xMzc3Mjcx<br />    [7] => NjY1MTA5JnViPTM3DQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KDQq4/LjER29vZ2xlK7vh<br />    [8] => z/LE47eiy83ExNCptefX09PKIA0KvP6jumh0dHBzOi8vcGx1cy5nb29nbGUuY29tL18vbm90aWZp<br />    [9] => Y2F0aW9ucy9lbWxpbms/ZW1yPTExNTIyNzczMjYwNzQ5NDUyNzc2JmVtaWQ9Q0pDazRPTHdrN2tD<br />)<br />
Nach dem Login kopieren

------解决方案--------------------
【利用Mail_MimeDecode类提取邮件正文】
------解决方案--------------------
自己分析也可以

$ar = array(<br>    'sb7W3CBHb29nbGUrIMjIw8XQxc+iDQoNCrLpv7TIyMPF0MXPoiAgDQpodHRwczovL3BsdXMuZ29v',<br>    'Z2xlLmNvbS9fL25vdGlmaWNhdGlvbnMvZW1saW5rP2Vtcj0xMTUyMjc3MzI2MDc0OTQ1Mjc3NiZl',<br>    'bWlkPUNKQ2s0T0x3azdrQ0ZjbEFNUW9kNVcwQUFBJnBhdGg9JTJGZXhwbG9yZSZkdD0xMzc3Mjcx',<br>    'NjY1MTA5JnViPTM3DQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KDQq4/LjER29vZ2xlK7vh',<div class="clear">
                 
              
              
        
            </div>
Nach dem Login kopieren
Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage