坐等大侠,Mail_mimeDecode 怎么使用,希望用过这个类的朋友指点下
构造函数的时候不知道该怎么传这个参数,怎么传都没有解出内容来
$mailhandle = new Mail_mimeDecode($intput);
下面是获取到的邮件的header和body
Array( [0] => Delivered-To: beizidream@gmail.com [1] => Received: by 10.194.118.165 with SMTP id kn5csp54354wjb; Sun, 18 Aug 2013 16:02:50 -0700 (PDT) [2] => Return-Path: <3mVIRUgcLChoDEH4FBOOEKJK14.2EC148P83H40C6C08B.2EC@youtube-subscriptions.bounces.google.com> [3] => Received-SPF: pass (google.com: domain of 3mVIRUgcLChoDEH4FBOOEKJK14.2EC148P83H40C6C08B.2EC@youtube-subscriptions.bounces.google.com designates 10.42.90.198 as permitted sender) client-ip=10.42.90.198 [4] => Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3mVIRUgcLChoDEH4FBOOEKJK14.2EC148P83H40C6C08B.2EC@youtube-subscriptions.bounces.google.com designates 10.42.90.198 as permitted sender) smtp.mail=3mVIRUgcLChoDEH4FBOOEKJK14.2EC148P83H40C6C08B.2EC@youtube-subscriptions.bounces.google.com; dkim=pass header.i=@youtube.com [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) [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== [7] => MIME-Version: 1.0 [8] => X-Received: by 10.42.90.198 with SMTP id l6mr4798207icm.12.1376866969820; Sun, 18 Aug 2013 16:02:49 -0700 (PDT) [9] => List-Unsubscribe: <http://www.youtube.com/email_unsubscribe?uid=kRXgrwCG_Dm3jiwgQAd57A&action_unsubscribe=obHjTl_QJfjCuVOTnVZ-xVMYjNN8MTM3Njg2Njk2OUAxMzc2ODY2OTY5&feature=em-subs_digest> [10] => Message-ID: <90e6ba614c92a39e3904e440d28d@google.com> [11] => Date: Sun, 18 Aug 2013 23:02:49 +0000 [12] => Subject: =?GB2312?Q?Adrian_Crenshaw=A3=BAcharacter_assassination_animation_?= =?GB2312?Q?test=0D=0A?= [13] => From: YouTube <noreply@youtube.com> [14] => To: Zi Bei <beizidream@gmail.com> [15] => Content-Type: multipart/alternative; boundary=90e6ba614c92a39e3004e440d28a) Array( [0] => --001a11c255345c277404e49f0c1b [1] => Content-Type: text/plain; charset=GB2312; format=flowed; delsp=yes [2] => Content-Transfer-Encoding: base64 [3] => [4] => sb7W3CBHb29nbGUrIMjIw8XQxc+iDQoNCrLpv7TIyMPF0MXPoiAgDQpodHRwczovL3BsdXMuZ29v [5] => Z2xlLmNvbS9fL25vdGlmaWNhdGlvbnMvZW1saW5rP2Vtcj0xMTUyMjc3MzI2MDc0OTQ1Mjc3NiZl [6] => bWlkPUNKQ2s0T0x3azdrQ0ZjbEFNUW9kNVcwQUFBJnBhdGg9JTJGZXhwbG9yZSZkdD0xMzc3Mjcx [7] => NjY1MTA5JnViPTM3DQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KDQq4/LjER29vZ2xlK7vh [8] => z/LE47eiy83ExNCptefX09PKIA0KvP6jumh0dHBzOi8vcGx1cy5nb29nbGUuY29tL18vbm90aWZp [9] => Y2F0aW9ucy9lbWxpbms/ZW1yPTExNTIyNzczMjYwNzQ5NDUyNzc2JmVtaWQ9Q0pDazRPTHdrN2tD)
回复讨论(解决方案)
【 利用Mail_MimeDecode类提取邮件正文】
自己分析也可以
$ar = array( 'sb7W3CBHb29nbGUrIMjIw8XQxc+iDQoNCrLpv7TIyMPF0MXPoiAgDQpodHRwczovL3BsdXMuZ29v', 'Z2xlLmNvbS9fL25vdGlmaWNhdGlvbnMvZW1saW5rP2Vtcj0xMTUyMjc3MzI2MDc0OTQ1Mjc3NiZl', 'bWlkPUNKQ2s0T0x3azdrQ0ZjbEFNUW9kNVcwQUFBJnBhdGg9JTJGZXhwbG9yZSZkdD0xMzc3Mjcx', 'NjY1MTA5JnViPTM3DQoNCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KDQq4/LjER29vZ2xlK7vh', 'z/LE47eiy83ExNCptefX09PKIA0KvP6jumh0dHBzOi8vcGx1cy5nb29nbGUuY29tL18vbm90aWZp', 'Y2F0aW9ucy9lbWxpbms/ZW1yPTExNTIyNzczMjYwNzQ5NDUyNzc2JmVtaWQ9Q0pDazRPTHdrN2tD',);$r = array_map('base64_decode', $ar);echo join('', $r);
查看热门信息
https://plus.google.com/_/notifications/emlink?emr=11522773260749452776&emid=CJCk4OLwk7kCFclAMQod5W0AAA&path=%2Fexplore&dt=1377271665109&ub=37
------------------------
更改Google+会向你发送哪些电子邮
件:https://plus.google.com/_/notifications/emlink?emr=11522773260749452776&emid=CJCk4OLwk7kC
多谢, 网上文章看了两天了,找了好几个类,没有一个能调试通过的。
看来还得自己分析啊

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Alipay PHP...

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
