
:max_bytes(150000):strip_icc()/001-how-to-send-a-file-attachment-with-gmail-1172099-b60107e9c804460f9839f66b4b061758.jpg)
Symfony 4.3 What PHP libraries does this tutorial use? // composer.json There's one other thing I want to show with messenger. The only caveat is that the worker needs to have access to the file at that path. By doing this, the path to the file is what is stored in the queue. Second, if you need to use doctrine and you do send binary attachments, instead of saying ->attach() you can say ->attachFromPath() and pass this a path on the filesystem to the file. First, instead of Doctrine, use another transport - like AMQP. If this is a problem for you, there are two fixes. so when Messenger tries to put it into a column that doesn't support binary data. Why does our email contain binary data? Remember: the method that creates the author weekly report email also generates a PDF and attaches it. This may change in Symfony 4.4 - there's a pull request for it - but it may not be merged in time. What we're seeing is a real-world limitation of the doctrine transport: it can't handle binary data. Note: Saving/attaching .eml is not currently supported on mobile.Php bin/console app:author-weekly-report:send Problems with Binary AttachmentsĪh! Explosion! Incorrect string value? Wow. You can attach it to a message via drag-and-drop or with the attachment file picker. Desktop app: You will get the Save As prompt where you can rename the file and choose your download location.

