Comments (5)
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.
It looks like there is no provision for attaching documents.
This also effects embedded images.
from yii2-mailqueue.
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.
@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.
@BBrunekreeft merged and a new release is done. Thanks for your help.
from yii2-mailqueue.
Related Issues (20)
- Error when using aliases in view HOT 2
- [Bug] Error when composer update - Add column swift_message HOT 2
- File attachments to emails HOT 2
- MailQueue->process(): message contained attachment cannot be unsearilzed HOT 7
- option to delete message from queue when sent HOT 2
- queue() method in Message.php seems incomplete HOT 3
- Database: mail_queue: swift_message column should be LONGTEXT
- Install error HOT 2
- PHP Warning 'yii\base\ErrorException' with message 'mkdir(): Permission denied' HOT 3
- can not send email HOT 5
- Compose Mail with attachContent error data too long for DB HOT 2
- upgrade to yii2-swiftmailer 2.1.0
- Migrations fails HOT 3
- Queueing for a long time
- Does it support mailer 2.1
- Console command not executing the code .but it works fine on the frontend/backend actions HOT 1
- Mail processing hangs when encountering a message witha non valid TO address
- Memory exhausted when queueing "a lot" of emails HOT 3
- Set priority to emails
- Implementing sending timetout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-mailqueue.