Eden-PHP / Mail

Eden POP3, IMAP and SMTP component
MIT License
183 stars 84 forks source link

Extracting Attachments #57

Open subhandp opened 6 years ago

subhandp commented 6 years ago

How to extract attachment, saving, or download ?

result is just strings:

$email = $imap->getUniqueEmails(299, true); 
echo $email['attachment']['presentasi hasil.pptx'];

do I have to create my own header attachment to be able to download it directly?

cblanquera commented 6 years ago

the value might be base64 encoded, though I cannot tell based on what you gave me. try base64_decode()

talaruety commented 6 years ago

Hi Were you able to download the attachments? I want to implement that in imap connction. I am able to connect the impas server, download the email, get the name of the attachment but cant figure out how to actually download it. Cheers.