note 102030 added to function.imap-fetchbody
| From: | TheDocTor at osu1 dot php dot net | Date: | Mon, 24 Jan 2011 11:49:04 +0000 |
| Subject: | note 102030 added to function.imap-fetchbody | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176237@lists.php.net to get a copy of this message | ||
hey people.. i need help in downloading attachments from gmail.. what i get so far is the name of
the attached file and I'm just providing a link to it.. but I've not succeed in providing
a "Save as" and "Open" window..
This is what I have so far..
if ($numparts > 1)
{
foreach ($structure->parts as $part)
{
if (($part->disposition == "ATTACHMENT") || ($part->disposition ==
"attachment"))
{
$fileName = "<a
href='#'>".$part->dparameters[0]->value."</a>";
$message = imap_fetchbody($inbox,$email_number,1.1);
}
else
$fileName = "None";
}
}
ps: I've tried using header() to modify the headers but I get those warnings because cause I
have to echo some tags before it..
----
Server IP: 69.147.83.197
Probable Submitter: 59.95.40.126
----
Manual Page -- http://www.php.net/manual/en/function.imap-fetchbody.php
Edit -- https://master.php.net/note/edit/102030
Del: integrated -- https://master.php.net/note/delete/102030/integrated
Del: useless -- https://master.php.net/note/delete/102030/useless
Del: bad code -- https://master.php.net/note/delete/102030/bad+code
Del: spam -- https://master.php.net/note/delete/102030/spam
Del: non-english -- https://master.php.net/note/delete/102030/non-english
Del: in docs -- https://master.php.net/note/delete/102030/in+docs
Del: other reasons-- https://master.php.net/note/delete/102030
Reject -- https://master.php.net/note/reject/102030
Search -- https://master.php.net/manage/user-notes.php