listmonk
listmonk copied to clipboard
email attachments?
Hi and first of all, thanks for listmonk, I really like the clean , decluttered approach.
I need to send emails with pdfs as attachment. Is that possible, supported or planned?
Thanks for answering
Thanks @praul. Attachments aren't immediately planned as they're an unlikely usecase in newsletters and mailing lists. They can also significantly affect bandwidth usage and performance of campaigns.
I'm also interested in this..
thanks
What is the benefit of sending the PDF via mail than to add a Tracking Dowload Link?
You do not need a storage where leave them available...
We're also interested in this feature. When sending out press releases we sometimes like to attach the press release as a PDF or add additional images that should not appear in the e-mail test itself. It's a standard practice to attach things to e-mails in this context.
I'll look into this once after the next major release (bounce processing). This is not a trivial feature to implement. Re-opening the issue for now.
I'm going to agree, this feature is a bit of a slippery slope, but I can also add other potential use-cases.
Our use is internal and we could really use attaching .ics files or meeting invites to certain campaigns.
Edit: If a vendor started doing this to me in their mailing lists I'm not sure what my reaction would be ... but it wouldn't be good! >_< From a "Don't do unto others" point of view, I'm not sure this should be permitted.
I have exactly the same need as @avanier in regards to ics files, which is why I was searching out a solution and found this issue.
I use listmonk to send out newsletter for our fire department and here it would also be quite helpful to be able to attach files.
I've looked into this and enabling native attachments poses several technical challenges.
- When an attachment is uploaded to a campaign, it has to be stored somewhere. The existing image/media upload backend can be used for this.
- When a campaign is being processed, the attachments have to be read and held in memory. Reading from disk or S3 per message is not practical. However, large attachments could pose problems when held in-memory.
- How can file deletion be handled (from the media gallery) when there's a running campaign or a paused campaign?
What is easier is to refactor the media upload feature to accept arbitrary file types and not just images. Then the richtext toolbar can then get a button that opens up the file gallery that inserts the link to the desired file in the campaign body. Not an e-mail attachment, but simpler UX for uploading and linking files from within listmonk.
But keep in mind: This would make the attachment public visible to anyone with the link. E-Mail attachments are just sent 1:1 normally. That'swhy I'd say this is a campaign-specific upload and should not be merged with the media library?
- We need a new backend/api
- The file deletion problem will be solved.
Probably quite a unique use case, but I run listmonk in a Docker container on my local NAS and use AWS SES to send out the mails. So a link to listmonk is not helping a lot in my situation. But not sure if that's a problem that anyone except of me has tbh 😅
I have the same needs as @emacsen and @avanier in regards to attaching ics files. Additionally, I have implemented listmonk to handle all transactional email and there is a need for attaching invoices that has arisen recently. Hope the demand for the feature is not too overwhelming. Thanks
Hi, do I get it right that it is still not possible to add attachments to emails, and that this is also not a TODO?
Thank you.
Hi @ShurayukiHime. There's no support right now. How best to implement this is something we're pondering on this thread. No concrete ideas yet.
Would be very much interested in that. As someone already mentioned: for press releases, this is a very important feature
Chiming in here as well, would be great to allow embedded images (so they won't be blocked by mail-clients) and attachment of small files (pdfs), is this something you're actively working on? I see that https://github.com/knadh/listmonk/pull/1243 got merged, but I don't get how to add attachments to a campaign.
Have started working on adding attachments support. Should be available in the next version.

- Upload arbitrary files to the media gallery (filesystem or S3 backend).
- Add them as attachments to campaigns. Files that are attached are pulled once and held in memory for the duration of the campaign.
- If an attached file is deleted during the campaign, it does not effect a running campaign. If the program is restarted, then the file is lost from memory and is no longer attached. Fair game in that rare scenario.
- While files of any size can be attached, it most likely will not be ideal to attach large files due to obvious reasons (memory, network throughput). That's left to the user.
@knadh oh wow, this sounds awesome! Does this mean inline images will be working as well without pulling from the server?
@msbt attaching files is the first step to inserting content inline. Yep, will be exploring how to do that.
Hey @knadh, how are things with this one, is this somewhere on the roadmap to be implemented soon or is there no bandwidth available for that feature?
This is now merged https://github.com/knadh/listmonk/commit/3b9a0f782e62713ef230344a12558da5f2350eec. listmonk now supports uploading of arbitrary files and file attachments on campaigns. Thanks for your patience!
Are you planning to build a docker container with that so it's easier for us to deploy it?
I'm refactoring the media upload UI/UX to make this a little easier. Once that is done, I can push a release candidate if you want to try it out before the next major release.
Yes, I'd definitivly try it asap, since I'm really looking forward to this feature
Hi, any news regarding this? We highly anticipate that feature as our newsletters most of the time contain an attachment.
This is already merged and will be available in the upcoming release (next month).
@knadh Could you create the release? I'd definitly like the attachments but I don't want to become n internal maintainer of release of containers of listmonk
v2.5.0 is stated to be released next week. Currently load testing it.
Any news from 2.5.0? I see there's a container 2.5.0-rc1 at dockerhub. Is it safe to try that out?