Coder Social home page Coder Social logo

Attachment not sent about yii2-mailqueue HOT 5 CLOSED

nterms avatar nterms commented on July 18, 2024
Attachment not sent

from yii2-mailqueue.

Comments (5)

BBrunekreeft avatar BBrunekreeft commented on July 18, 2024 1

See pull request #23
Did some tests and it works for me.
Note: you have to add attachements as Dynamic Content for this to work
Because if using the Swift_Attachment::fromPath() method, at the time of sending, the attachment might not be available on disk anymore.

from yii2-mailqueue.

thomassb avatar thomassb commented on July 18, 2024

It looks like there is no provision for attaching documents.
This also effects embedded images.

from yii2-mailqueue.

BBrunekreeft avatar BBrunekreeft commented on July 18, 2024

In Message::queue(), all separate fields are serialized and placed in the database (to, from, subject, etc).
Why not change Message::queue() so it serializes the complete Message object and places this in the database (in a new TEXT column: message)?
The only thing MailQueue::process() has to do now, is deserialize this message and use the send() method of this deserialized object.

When using this approach, you kan place all kinds of messages with attachments and inline images in the queue.

from yii2-mailqueue.

nterms avatar nterms commented on July 18, 2024

@BBrunekreeft Thanks a lot for your suggestion, however at this moment I can't find time to work on this. You are welcome to do a pull request if you have a fix.

from yii2-mailqueue.

nterms avatar nterms commented on July 18, 2024

@BBrunekreeft merged and a new release is done. Thanks for your help.

from yii2-mailqueue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.