-
Notifications
You must be signed in to change notification settings - Fork 0
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
Query : Will this bundle handle numerous attachments #2
Comments
Hey. It might resolve it, it depends on what your current setup looks like. Could you share your configuration related to email? This bundle doesn't store the attachments inside the message, it writes them one by one to the filesystem (or somewhere else if you implement it). |
Hi
My email configuration is simple..uses symfony mailer and the attaches the
attachments.with the email. And the files are persisted before it sends the
email
Will your bundle attach the files with the email?
…On Mon, 2 Oct 2023, 07:44 Arjan Frans, ***@***.***> wrote:
Hey. It *might* resolve it, it depends on what your current setup looks
like. Could you share your configuration related to email?
This bundle doesn't store the attachments inside the message, it writes
them one by one to the filesystem (or somewhere else if you implement it).
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ5MNGIXMZGBWW3SS6U4HTX5JPDLANCNFSM6AAAAAA5LR2ABQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Do you attach the files like this: https://symfony.com/doc/current/mailer.html#file-attachments You could easily try out this bundle, it doesn't require any configuration. |
Yes I attach them this way.
Are the attachments going to be sent along with the email when I use your
bundle?
I cant use it straight away because Im using Symfony 5.4 and I ll also wont
need FileHandler since my files are already persisted on the file system
…On Mon, 2 Oct 2023, 08:18 Arjan Frans, ***@***.***> wrote:
Do you attach the files like this:
https://symfony.com/doc/current/mailer.html#file-attachments
You could easily try out this bundle, it doesn't require any configuration.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ5MNFF2HHONKLRDX7K3Q3X5JTFRANCNFSM6AAAAAA5LR2ABQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, the attachments will be there. But since you are using the file system anyway, then you probably don't need this bundle. The purpose of this bundle is to abstract away the persisting (so for example you could also use a cloud storage for them) and to avoid that the actual message queue contains potentially large files. |
But even with the persisted files .whether I use attachFromPath or DataPart
I still get the memory leak. Since they are part of the message .
What I understood from your bundle .it separates the attachment data from
the main email message in the extended Email class.
Is that not correct?
…On Mon, 2 Oct 2023, 08:33 Arjan Frans, ***@***.***> wrote:
Yes, the attachments will be there.
But since you are using the file system anyway, then you probably don't
need this bundle.
The purpose of this bundle is to abstract away the persisting (so for
example you could also use a cloud storage for them) and to avoid that the
actual message queue contains potentially large files.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ5MNBGK6ZRCOHGNXD3WI3X5JU4HANCNFSM6AAAAAA5LR2ABQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Yep , it only occurs when fileSize >= 5MB and I attach atleast 5 files
…On Mon, Oct 2, 2023 at 8:51 AM Arjan Frans ***@***.***> wrote:
attachFromPath also doesn't store the attachment data. I think the
problem lies elsewhere, how large are the files you are trying to attach.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ5MNBFR5F77GP2X6IJF3LX5JXBXANCNFSM6AAAAAA5LR2ABQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
HI
Im facing an issue with Symfony mailer where attaching numerous files in the same email gives me Out of memory exception .
Note my files are already persisted and saved way before sending the email
Im thinking of using this bundle to resolve this, but Im not sure if it will , it seems it still builds up those attachments in the same message? The bundle only makes sure they are persisted before sending them or am I missing something
Any advice will be appreciated
The text was updated successfully, but these errors were encountered: