Skip to content

$oAttachment->getContent() retorna false #526

Open
@YaszCarol

Description

@YaszCarol

Após a conexao e pegar as mensagens, o codigo é
foreach ($aMessage as $oMessage) {

                        if ($oMessage->hasAttachments()) {
                            $aAttachment = $oMessage->getAttachments();
                            $aAttachment->each(function ($oAttachment) {

                                dd($oAttachment->getContent());
 dessa forma me retornando false quando existe o arquivo no e-mail, o objeto Webklex\IMAP\Attachment é criado certinho e existe o atributo dessa forma:
 +attachments: Webklex\IMAP\Support\AttachmentCollection {#12668
  #total: null
  #items: array:1 [
    0 => Webklex\IMAP\Attachment {[#7072](https://github.com/Webklex/php-imap/issues/new?assignees=&labels=&projects=&template=general-help-request.md#sf-dump-1888554629-ref27072)}
  ]
}
alguém consegue me dizer o porque nao consigo obter o conteudo desse arquivo com $oAttachment->getContent() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions