php - ZF2 reading mail with attachments?? -
i can't find documentation reading email attachments. can suggest something?
i using zend\mail\storage\imap
read emails text, cant find methods attachments.
ifyou can access attachments using mime/part package. can firstly test message multipart using $message->ismultipart()
can iterate messages parts or access specific part using $part = $message->getpart($num);
there can access type of part, determine if inline/attachements , on.
useful links:
see : http://framework.zend.com/manual/2.2/en/modules/zend.mail.attachments.html
see : http://framework.zend.com/manual/2.2/en/modules/zend.mime.part.html
Comments
Post a Comment