You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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() ?
The text was updated successfully, but these errors were encountered:
Após a conexao e pegar as mensagens, o codigo é
foreach ($aMessage as $oMessage) {
The text was updated successfully, but these errors were encountered: