-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sending emails when storing invoices in S3 #242
base: 1.0
Are you sure you want to change the base?
Conversation
Hello @michaelKaefer, first of all, sorry for not answering for a long time. Probably I'm not 100% aware of the problem and it is more complex than I think, but isn't it enough to create a proper directory ( |
@GSadee I guess this should work too, I did not try. But it means to force everbody who uses S3 (or similar) to create and never delete a directory |
Hi @michaelKaefer 🖖 As far as I see, the invoices path is parametrized, so it should be fairly easy to change it if it's needed. Instead of these changes, maybe we could extract the hardcoded |
@Zales0123 I am not sure if that is a good solution:
|
Hello @michaelKaefer and sorry one more time for the silence 🖖 However, I'm still not convinced should we change it the way you propose :/ I see your point, but I believe it's a fix/change done on the wrong repository. The Invoicing plugin just uses the SyliusMailerBundle, which is responsible for sending emails, with everything that comes with it. There is already a PR opened which, as I understand from your previous message, would fix this problem. So I say we should push this PR forward - and I can say it's a priority for me to release a new mailer bundle with the Symfony mailer support. Then, we can bump the requirement for SyliusMailerBundle here or in Sylius itself and everything should be fine... am I right? 😄 Cheers 🚀 |
@Zales0123 Thank you for your answer.
|
IMO, this PR is mostly correct. The Sylius Mailer API implicitly requires the |
@mbabker I forgot about that but I checked it and it should not be a problem when using an async Messenger config: everytime the message is handled the invoice file is generated if it cannot be found. |
Hi @GSadee and @michaelKaefer, do you have any news about this problem or this PR, I have the same problem with a storage of invoices on S3, I tried to leave the folder private/invoices on the server but nothing helps. |
Fixes:
Reason: when storing invoices on S3 the directory
/private/invoices
does not exist, so it is necassary to readd the TemporaryFilesystem and use it for sendending the invoice emal.